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)
Sat, Mar 15, 5:53 AM
Unknown Object (File)
Mon, Mar 3, 6:59 PM
Unknown Object (File)
Sun, Feb 23, 2:41 PM
Unknown Object (File)
Feb 17 2025, 4:26 AM
Unknown Object (File)
Feb 15 2025, 7:17 AM
Unknown Object (File)
Feb 14 2025, 11:00 PM
Unknown Object (File)
Feb 13 2025, 11:50 AM
Unknown Object (File)
Feb 13 2025, 4:44 AM

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.