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, Feb 15, 7:17 AM
Unknown Object (File)
Fri, Feb 14, 11:00 PM
Unknown Object (File)
Thu, Feb 13, 11:50 AM
Unknown Object (File)
Thu, Feb 13, 4:44 AM
Unknown Object (File)
Tue, Feb 4, 1:04 PM
Unknown Object (File)
Mon, Feb 3, 8:22 AM
Unknown Object (File)
Mon, Jan 27, 8:03 PM
Unknown Object (File)
Jan 17 2025, 5:07 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.