- Newest
- Most votes
- Most comments
Hello,
I've followed the steps mentioned by you at my end and noticed the following behaviour:
-
When versioning is in disabled state for S3 bucket, then there's no object in the bucket after the completion of multipart upload. This is similar to the behaviour observed at your end.
-
When versioning is in enabled state for S3 bucket and
a) when the regular object is temporarily deleted (deletion without including version ID) in step 5, then, after the completion of multipart upload, the MPU object is stored as a noncurrent version in the bucket alongside the regular object while the delete marker for the object is stored as the current version.
b) when the regular object is permanently deleted (deletion by including version ID) in step 5, then, after the completion of multipart upload, the MPU object is stored as a current version in the bucket with no noncurrent versions.
The above behaviours are expected as mentioned in AWS public documentation https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#distributedmpupload
From the documentation:
"For buckets that don't have versioning enabled, it is possible that some other request received between the time when a multipart upload is initiated and when it is completed might take precedence."
"For example, if another operation deletes a key after you initiate a multipart upload with that key, but before you complete it, the complete multipart upload response might indicate a successful object creation without you ever seeing the object."
"When the buckets have S3 Versioning enabled, completing a multipart upload always creates a new version."
Relevant content
- asked 25 days ago
- AWS OFFICIALUpdated 2 years ago
