Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only retry multi-part upload as single-part upload on GCS endpoints #2012

Merged

Conversation

ramondeklein
Copy link
Contributor

Because of GCS compatibility, the multi-part upload retries a multi-part upload as a single PutObject when it receives an access denied. This introduces a strange error message, because when a multi-part upload isn't allowed (i.e. due to policy), then it retries the operation as a single-part operation.

Single part uploads are limited to 5GiB, so if uploading a file larger than 5GiB is uploaded, but not allowed, this will return the following error message: Your proposed upload size ‘...’ exceeds the maximum allowed object size ‘5368709120’ for single PUT operation.. For AWS S3 and MinIO, there is just a single action for upload operations (s3:PutObject), so it doesn't make sense to retry the upload. This saves a roundtrip and an error message that could be misleading.

@ramondeklein ramondeklein self-assigned this Oct 21, 2024
@harshavardhana harshavardhana merged commit 9f2a600 into minio:master Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants