-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
[Feature Request]: list-objects-v2 allow unordered support. #1269
Comments
@snosratiershad Are you sure that it is supported for the list-objets also? In ceph documentation, I only see this option available in the BucketOps doc page and not in ObjectOps page. Where you able to test this parameter with DigitalOcean? |
@fviard, yes! it works on list-objects and list-objects-v2 (and I recently added list-objects-v2 support to boto3 (and aws) ceph extention PR) Update: I couldn't found more on ceph documentation, only verified that it's included in bucketops documentation, and rgw source code (src/rgw/rgw_rest_s3.cc:1592) |
Ok, good news. So, to be sure to understand well, you just have to add "allow-unordered" to query param of the list-objects* to have this behavior? Btw, it has been a long time that I did not have a look at aws-cli, but I would not recommend you to use that option with their sync, as they are relying on the fact that keys are order to decide on which file to synchronize. |
yes!
as aws-cli uses boto3, I think it would be a reliable to change behaviors via aws config modules as extention. but I will double check it if you think it's not safe. |
So, I'm going to add the |
Great if you submit a PR :-) For aws-cli, my point is that with boto, if you use as API, that should be ok. |
Merged! |
In ceph storage's s3 interface, there is a flag named "allow-unordered" that allows rgw (the gateway) to don't force the cluster to sort all of objects in case of list-objects-v2 requests.
There is also a command option in radosgw-admin (gateway commandline utility) named "--allow-unordered" which provides unordered list to.
It's not officially supported by AWS, but included in S3 services which are based on Ceph storage (for example, DigitalOcean Spaces, Redhat Ceph Storage, Alibaba Cloud OSS, Sotoon S3, ...)
Is there any plan to support unordered list in s3cmd?
Update: I found a way to extend aws-cli's with add this file to
~/.aws/models/s3/2006-03-01/
. but not available in s3cmd.The text was updated successfully, but these errors were encountered: