Page MenuHomePhabricator

[services] Backup - Send attachments from pull backup reactor
ClosedPublic

Authored by karol on Jun 13 2022, 6:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 6:04 PM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 4:56 AM
Unknown Object (File)
Oct 6 2024, 10:49 AM

Details

Summary

Depends on D4245

We want to send attachment holders for both logs and compactions.

The data is sent in the following order:

  • compaction data
  • compaction holders
  • for log in logs
    • log data
    • log chunk
Test Plan

Services will still build properly. This change is eventually tested on the end of this stack when the logic for the backup test is added

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, varun.
karol removed a reviewer: varun.
Harbormaster returned this revision to the author for changes because remote builds failed.Jun 13 2022, 10:01 AM
Harbormaster failed remote builds in B9722: Diff 13467!

CI failed on an unrelated stage - key server
CI services build - no space left on device

Overall, this code is becoming really hard to read due to excessive conditional logic. We should consider choosing a different abstraction, e.g. a state machine - by doing this we would have clearly defined logic and state transitions.

This revision is now accepted and ready to land.Jun 20 2022, 4:08 AM
In D4246#121225, @palys-swm wrote:

Overall, this code is becoming really hard to read due to excessive conditional logic. We should consider choosing a different abstraction, e.g. a state machine - by doing this we would have clearly defined logic and state transitions.

Just commenting to say that I agree

karol edited the summary of this revision. (Show Details)

separate log id from backup id