Commit Graph
2 Commits
Author SHA1 Message Date
Yip LeoandClaude Opus 5.5 0b0f54381d s3api: list every entry of the upload directory when completing a multipart upload (#13219)
prepareMultipartCompletionState read the upload directory with one
listing of MaxS3MultipartParts+1 entries and ignored whether more
remained. The directory holds one entry per attempt of a part, as each
UploadPart gets its own name, so an upload with many parts and some
retries can hold more, and the parts that sort after the first page were
never found: completion answered InvalidPart for parts that exist. The
cleanup listing of an already committed completion was capped the same
way.

listUploadEntries lists the directory page by page until the listing
reports its last entry, and both listings use it. The completion test
filer now pages like the filer, which its map-order listing had hidden.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:59:35 -08:00
Chris LuandClaude Opus 5.5 aab947b65e s3api: answer success when a failed completion already committed (#12416)
* s3api: name the check that a completion already committed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: answer success when a failed completion already committed

A finalize can fail after its commit: the filer stored the object and the
call still reported an error. The client then got a 500 with an unknown
outcome. When the failure may have left this attempt's object behind,
check the key the way a retry would and answer success with the
committed result when it holds this upload's object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: keep part data when the commit found is another attempt's

The object carrying this upload ID can be a concurrent attempt's commit of
the same upload, and its part selection can include entries this attempt
counts as unused. Free those parts' data only when the committed chunks
are this attempt's own; otherwise drop their metadata only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: test the committed-completion read on versioned buckets

Cover the latest-version read (version id and checksum in the answer),
a suspended bucket whose delete marker is still current, and that the
upload directory is removed without its data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: test versioned recovery through the completion handler

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:38:52 -08:00