Bug #75375
closedCompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload
0%
Description
when an upload overwrites an existing head object, it schedules any of its tail objects for garbage collection. this same logic applies when a CompleteMultipartUpload request gets retried - the retry refers to the same parts as the original request, so the overwrite causes its own tail objects to be gc'ed. the result is a corrupted head object that's visible to HeadObject and ListObjects requests, but GetObject requests fail with 404 due to missing tail objects
we use a cls lock to protect against races like this, but its default rgw_mp_lock_max_time=10min doesn't cover extreme cases where CompleteMultipartUpload takes longer than that
CB Updated by Casey Bodley 9 months ago
- Subject changed from CompleteMultipartUpload retry may choose reuploaded part objects that were scheduled for gc by an earlier CompleteMultipartUpload to CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload
- Description updated (diff)
CB Updated by Casey Bodley 9 months ago
- Regression changed from Yes to No
CB Updated by Casey Bodley 9 months ago
- Status changed from New to In Progress
- Assignee set to Casey Bodley
- Pull request ID set to 67696
CB Updated by Casey Bodley 9 months ago
- Description updated (diff)
KC Updated by Krunal Chheda 9 months ago
@Casey Bodley is there a quick way to go and examine the rados objects in the cluster that map to s3 multipart tail objects that could be corrupted due to above issue ? multipart objects are stored in rados with prefix of `shadow` or `multi`, can we leverage that and see if its corrupted ?
CB Updated by Casey Bodley 9 months ago
Krunal Chheda wrote in #note-5:
@Casey Bodley is there a quick way to go and examine the rados objects in the cluster that map to s3 multipart tail objects that could be corrupted due to above issue ? multipart objects are stored in rados with prefix of `shadow` or `multi`, can we leverage that and see if its corrupted ?
ceph provides a rgw-gap-list script that can probably identify missing tail objects. i'm not very familiar with its usage but i think you just tell it which data pool to scan
CB Updated by Casey Bodley 9 months ago
- Status changed from In Progress to Fix Under Review
- Backport set to squid tentacle
CB Updated by Casey Bodley 8 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 8 months ago
- Merge Commit set to c1f7de9e4e6e92622aaff0d2173c65f83bb56e2e
- Fixed In set to v20.3.0-6337-gc1f7de9e4e
- Upkeep Timestamp set to 2026-03-23T15:21:40+00:00
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75671: squid: CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload added
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75672: tentacle: CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload added
UB Updated by Upkeep Bot 8 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-03-23T15:21:40+00:00 to 2026-08-27T18:28:39+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~964
- Upkeep Timestamp changed from 2026-08-27T18:28:39+00:00 to 2026-10-24T01:16:02+00:00
UB Updated by Upkeep Bot 29 days ago
- Released In changed from v21.2.0~964 to v21.2.0~965
- Upkeep Timestamp changed from 2026-10-24T01:16:02+00:00 to 2026-11-04T01:09:27+00:00