Page MenuHomePhabricator

[native] Backup log upload
ClosedPublic

Authored by michal on Jan 15 2024, 6:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 3:00 PM
Unknown Object (File)
Sat, Nov 23, 2:59 PM
Unknown Object (File)
Sat, Nov 23, 1:43 PM
Unknown Object (File)
Sat, Nov 23, 11:32 AM
Unknown Object (File)
Thu, Nov 21, 3:52 AM
Unknown Object (File)
Thu, Nov 21, 3:52 AM
Unknown Object (File)
Oct 22 2024, 1:06 PM
Unknown Object (File)
Oct 22 2024, 9:00 AM
Subscribers

Details

Summary

ENG-5560 : Upload logic for logs

Similarly to the previous diff we want to upload log files to the backup service. One difference is that we need to wait for upload confirmation from the backup service, sent as a WS message, and only then remove the backup file. To prevent sending the same log files multiple times we keep track of logs that were sent but not yet confirmed in a HashSet that is shared between sender and receiver futures.

Depends on D10632

Test Plan

Create backup-123-log-456 and backup-123-log-456-attachments files. Enable backup upload. Make sure all data was successfuly uploaded to the backup service and the files were removed.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Some renames and code refactor to make it cleaner

This revision is now accepted and ready to land.Jan 18 2024, 11:34 PM