Repository navigation
recheck 404 response for complete multipart upload - #56475
Conversation
|
This is an automated comment for commit 7f34e0b with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
bc855a3 to
afbe3e5
Compare
afbe3e5 to
7f34e0b
Compare
|
here is my understanding, pls correct me if I'm wrong (haven't read all the linked issues). the problem will happen because we want to try make a request with a lower timeout first. and it is needed for perf. but is it necessary to do it for put/upload then instead of only get-s? |
I have triggered the issue like you described. So that PR is about theoretical possibility of that case regardless of timeouts or network errors. |
|
ClickHouse Integration Tests (release) ClickHouse Integration Tests (asan, Analyzer) ClickHouse Stateless Tests (debug) |
…stence Client::CompleteMultipartUpload rewrote NoSuchUpload to success whenever a HeadObject found any object at the key. ClickHouse#56475 added that for a completion whose response was lost, but existence at a key is not evidence of a replay: an upload aborted between create and complete, against a key that already held an object, was acknowledged with none of its rows stored. This layer cannot tell the two apart. It sees only the part list, while everything that identifies the write - metadata, storage class, encryption, conditional headers - is set on CreateMultipartUpload one request earlier. So the inference is removed, and NoSuchUpload is reported as it is. Authorship is proven where it is known instead. Every multipart create now carries the write token introduced by ClickHouse#113994, so the recovery that already existed for conditional writes covers all of them. copyS3File gains the same token and check. isObjectWrittenWithToken is shared by both. An unconditional single-part PUT still carries no token: it cannot receive the 412 that would read one back. The GCS compose request moves out of the completion outcome into Client::composeObjectAfterMultipartUpload, so a recovery that reports success without a successful outcome still composes the object. Closes: ClickHouse#114348
The issue has been found here:
#56314 (comment)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
404 response for CompleteMultipartUpload has to be rechecked. Operation could be done on server even if client got timeout or other network errors. The next retry of CompleteMultipartUpload receives 404 response. If the object key exists that operation is considered as successful.