Incorrect behavior on CompleteMultipartUpload when some parts are unused #198

Closed
opened 2022-01-19 20:45:25 +00:00 by trinity-1686a · 2 comments

I haven't tested it, but looking at the code, we currently reject CompleteMultipartUpload where some parts were uploaded but not used. AWS allow this behavior, and presumably delete unused parts

I haven't tested it, but looking at the code, we currently reject CompleteMultipartUpload where some parts were uploaded but not used. AWS allow this behavior, and presumably delete unused parts
trinity-1686a added the
S3 Compatibility
label 2022-01-19 20:45:25 +00:00
trinity-1686a added the
Low priority
label 2022-01-20 15:17:25 +00:00
Owner

Apparently AWS S3 renumbers parts on CompleteMultipartUpload. For instance if we complete a multipart upload taking parts 2, 3, 5, 9, then these parts can be obtained respectively with partNumber=1, 2, 3, 4 in for instance HeadObject or GetObject.

Currently the data model can't handle this, since once a block/part has been added to the Version, it cannot be removed, and also numbering changes are not supported.

Apparently AWS S3 renumbers parts on CompleteMultipartUpload. For instance if we complete a multipart upload taking parts 2, 3, 5, 9, then these parts can be obtained respectively with `partNumber=1`, `2`, `3`, `4` in for instance HeadObject or GetObject. Currently the data model can't handle this, since once a block/part has been added to the Version, it cannot be removed, and also numbering changes are not supported.
Owner

Closing in favor of #204

Closing in favor of #204
lx closed this issue 2022-01-25 11:26:25 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#198
No description provided.