Page MenuHomePhabricator

[backup] Log cleanup
ClosedPublic

Authored by michal on Jan 11 2024, 7:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 7:21 PM
Unknown Object (File)
Fri, Dec 27, 7:21 PM
Unknown Object (File)
Fri, Dec 27, 7:21 PM
Unknown Object (File)
Fri, Dec 27, 7:21 PM
Unknown Object (File)
Fri, Dec 20, 8:38 AM
Unknown Object (File)
Nov 21 2024, 3:58 AM
Unknown Object (File)
Nov 21 2024, 3:58 AM
Unknown Object (File)
Nov 6 2024, 3:46 AM
Subscribers

Details

Summary

For some reason I completely forgot about this. This diff adds logic for removing logs after the corresponding backup is deleted.

Test Plan

Run the updated integration test. All 30 logs were removed.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

services/backup/src/database/mod.rs
294–320

This could be done more efficiently but it would required changes to batch_write. It would need to start accepting a request stream instead of a complete vector. This way we could run both fetch and deletion in parallel. If the performance turns out to be a problem we could implement that but I don't think this should be prioritized right now.

This revision is now accepted and ready to land.Jan 11 2024, 9:24 AM