Final part of blob cleanup logic - added deletion of S3 objects.
Depends on D9352.
Paths
| Differential D9355 Authored by bartek on Oct 4 2023, 4:10 AM.
Details
Summary Final part of blob cleanup logic - added deletion of S3 objects. Depends on D9352. Test Plan Locally, uploaded a few items to S3 with object names hashA, hashB.
Diff Detail
Event Timelinebartek held this revision as a draft. Herald added a reviewer: • jon. · View Herald TranscriptOct 4 2023, 4:10 AM2023-10-04 04:10:43 (UTC-7) Harbormaster completed remote builds in B22964: Diff 31628.Oct 4 2023, 4:28 AM2023-10-04 04:28:59 (UTC-7) bartek added a child revision: D9413: [blob] Add CLI option to run cleanup task.Oct 9 2023, 5:38 AM2023-10-09 05:38:32 (UTC-7) Harbormaster completed remote builds in B23087: Diff 31789.Oct 9 2023, 6:01 AM2023-10-09 06:01:04 (UTC-7) Comment Actions If I understand correctly this will try to remove S3 blobs that might not exist (for holders can exist without having a blob uploaded and the logic will run for them too). Is this expected?
Comment Actions
This is expected. It causes no harm. Anyway, this is very unlikely scenario, if not impossible, because a DDB row is created after a successful S3 upload.
This revision is now accepted and ready to land.Oct 11 2023, 1:05 AM2023-10-11 01:05:15 (UTC-7) Harbormaster completed remote builds in B23174: Diff 31918.Oct 11 2023, 3:12 AM2023-10-11 03:12:43 (UTC-7) Harbormaster completed remote builds in B23177: Diff 31921.Oct 11 2023, 3:15 AM2023-10-11 03:15:57 (UTC-7) Closed by commit rCOMM73401a024533: [blob] Delete S3 objects during cleanup (authored by bartek). · Explain WhyOct 16 2023, 1:40 AM2023-10-16 01:40:18 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 31918 services/blob/src/s3.rs
services/blob/src/service.rs
|