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, Jul 6, 6:03 PM
Unknown Object (File)
Tue, Jul 2, 10:41 PM
Unknown Object (File)
Sat, Jun 29, 6:42 AM
Unknown Object (File)
Wed, Jun 26, 9:02 AM
Unknown Object (File)
Tue, Jun 25, 4:43 PM
Unknown Object (File)
Mon, Jun 24, 5:48 PM
Unknown Object (File)
Mon, Jun 24, 3:34 AM
Unknown Object (File)
Tue, Jun 18, 6: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