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)
Fri, Dec 20, 3:34 PM
Unknown Object (File)
Fri, Dec 20, 3:34 PM
Unknown Object (File)
Fri, Dec 20, 3:34 PM
Unknown Object (File)
Fri, Dec 20, 3:31 PM
Unknown Object (File)
Tue, Dec 10, 7:06 PM
Unknown Object (File)
Thu, Nov 28, 5:11 PM
Unknown Object (File)
Wed, Nov 27, 10:38 AM
Unknown Object (File)
Nov 23 2024, 2:31 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #11171)

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 ↗(On Diff #11171)

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.