Project

General

Profile

Actions

Bug #75375

closed
CB CB

CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload

Bug #75375: CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUpload

Added by Casey Bodley 9 months ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-6337-gc1f7de9e4e
Released In:
v21.2.0~965
Upkeep Timestamp:
2026-11-04T01:09:27+00:00

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


Related issues 2 (2 open — 0 closed)

Copied to rgw - Backport #75671: squid: CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUploadNewCasey Bodley

Actions
Copied to rgw - Backport #75672: tentacle: CompleteMultipartUpload retry schedules its own parts for gc when overwriting an earlier CompleteMultipartUploadNewCasey Bodley

Actions

CB Updated by Casey Bodley 9 months ago Actions #1

  • 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 Actions #2

  • Regression changed from Yes to No

CB Updated by Casey Bodley 9 months ago Actions #3

  • 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 Actions #4

  • Description updated (diff)

KC Updated by Krunal Chheda 9 months ago Actions #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 ?

CB Updated by Casey Bodley 9 months ago Actions #6

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 Actions #7

  • Status changed from In Progress to Fix Under Review
  • Backport set to squid tentacle

CB Updated by Casey Bodley 8 months ago Actions #8

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 8 months ago Actions #9

  • 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 Actions #10

  • 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 Actions #11

  • 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 Actions #12

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #13

  • 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 Actions #14

  • 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 Actions #15

  • 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
Actions

Also available in: PDF Atom