Page MenuHomePhabricator

[services] Backup - Send log - add backup id and log hash states
ClosedPublic

Authored by karol on Apr 7 2022, 7:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 8:44 PM
Unknown Object (File)
Fri, Nov 15, 9:04 AM
Unknown Object (File)
Tue, Nov 5, 5:55 PM
Unknown Object (File)
Oct 13 2024, 3:59 PM
Unknown Object (File)
Oct 13 2024, 3:59 PM
Unknown Object (File)
Oct 13 2024, 3:59 PM
Unknown Object (File)
Oct 13 2024, 3:57 PM
Unknown Object (File)
Sep 24 2024, 1:34 PM

Details

Summary

Depends on D3646

Adding two missing states for the reactor: BACKUP_ID and LOG_HASH. along with the cases in the reading request method's body.

Test Plan
cd services
yarn run-backup-service

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: tomek, max.
tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
94–104

It is ok to introduce new, unimplemented states, but it would be better if we added them one-by-one, with the implementation.

Also, this->state = State::LOG_CHUNK; is deleted... shouldn't we replace it with this->state = State::BACKUP_ID;?

This revision is now accepted and ready to land.Apr 8 2022, 1:23 AM
services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
94–104

It is ok to introduce new, unimplemented states, but it would be better if we added them one-by-one, with the implementation.

I understand. I'm going to try to remember about this next time.

Also, this->state = State::LOG_CHUNK; is deleted... shouldn't we replace it with this->state = State::BACKUP_ID;?

t is added in D3651. Here we return unimplemented anyway so there's no point in caring about the correctness of the logic as it's not gonna work here yet anyway.