-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 do a multipart s3 copy when above the regular copy limit #41914
Conversation
/backport to stable28 |
/backport to stable27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't test if MultiPart is supported? Something like:
if ($this->getObjectStore() instanceof IObjectStoreMultiPartUpload) {
// multipart
} else {
// not multipart
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, do you know what s3 providers/solutions enforce such a limit?
It might need a different interface, I'm not sure if all providers that support multipart upload also support multipart copy |
No, but there are at least 2 different cases where the multipart copy is failing
I'm not aware of any good way to tell if an S3 implementation supports it |
For reference, I'm also affected by this issue, using Google Cloud Storage (but haven't tested this patch yet). Some built-in solution would be greatly appreciated, either a configurable limit like |
You should propagate |
Signed-off-by: Robin Appelman <robin@icewind.nl>
…roviders Signed-off-by: Julius Härtl <jus@bitgrid.net>
34bff45
to
e405437
Compare
Pushed an additional commit to be able to fully turn off multipart copy for s3 providers not supporting it at all. |
Added in nextcloud/server#41914 Signed-off-by: Josh <josh.t.richards@gmail.com>
Added in nextcloud/server#41914 Signed-off-by: Josh <josh.t.richards@gmail.com>
Added in nextcloud/server#41914 Signed-off-by: Josh <josh.t.richards@gmail.com>
Added in nextcloud/server#41914 Signed-off-by: Josh <josh.t.richards@gmail.com>
Multipart copy seems problematic with some backends so avoid it when possible.