]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
s3: Add a test for attempting to complete an unstarted multipart upload
authorJacques Heunis <jheunis@bloomberg.net>
Mon, 16 Mar 2026 15:13:02 +0000 (15:13 +0000)
committerJacques Heunis <jheunis@bloomberg.net>
Mon, 16 Mar 2026 15:30:56 +0000 (15:30 +0000)
commit5506af825b6dde397da7926cdcab889ff537c506
treee5d614ec1896cc20e9d9a9a98be3ad48d7d0a515
parent06e2c5789a39991eed6008b8f728914fe7c7ee3a
s3: Add a test for attempting to complete an unstarted multipart upload

The AWS documentation for CompleteMultipartUpload specifies that the call will
return a 404 with the text "NoSuchUpload" to indicate that the specified
multipart upload does not exist. This could be the result of an invalid upload
ID or a multipart upload that has been aborted or completed.

Of particular significance is the requirement that this API call return a
400-series error (indicating a client-side problem) and not a 500-series error
(indicating a server-size problem).
At the time of writing, Ceph returns a 500 in this scenario which may be
handled incorrectly by client SDKs and is likely to be misinterpreted by Ceph
monitoring as an increase in errors that require operator intervention to fix.

CompleteMultipartUpload docs available at:
https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html

Signed-off-by: Jacques Heunis <jheunis@bloomberg.net>
s3tests/functional/test_s3.py