HomePhabricator
Diffusion Comm d331457cce96

[native] Backup log upload

Description

[native] Backup log upload

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.

Reviewers: marcin, bartek, kamil

Reviewed By: bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10633

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Jan 12 2024, 7:05 AM
Reviewer
bartek
Differential Revision
D10633: [native] Backup log upload
Parents
rCOMMc0cd77ac4a13: [native] Backup compaction upload
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMd331457cce96: [native] Backup log upload (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Jan 26 2024, 5:09 AM