mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
It may happen that wrapping up multipart upload fails too. However, before sending the request the driver clears the _upload_id field thus marking the whole process as "all is OK". So in case the finalization method fails and thrown, the upload context remains on the server side forever. Fix this by keeping the _upload_id set, so even if finalization throws, closing the uploader notices this and calls abort. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Closes scylladb/scylladb#15521