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
F3502589: D4246.id14324.diff
Fri, Dec 20, 4:25 AM
F3502588: D4246.id14012.diff
Fri, Dec 20, 4:25 AM
F3502587: D4246.id13882.diff
Fri, Dec 20, 4:25 AM
F3502586: D4246.id13467.diff
Fri, Dec 20, 4:25 AM
F3502523: D4246.id.diff
Fri, Dec 20, 4:24 AM
F3502471: D4246.diff
Fri, Dec 20, 4:16 AM
Unknown Object (File)
Wed, Dec 18, 7:35 PM
Unknown Object (File)
Mon, Dec 9, 8:54 PM

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
No Lint Coverage
Unit
No Test Coverage

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