-
Notifications
You must be signed in to change notification settings - Fork 264
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
Not all s3 objects are returned during list s3objects #200
Comments
@res0nat0r Sorry for delay and thanks for reporting 👍 Let's get to the bottom of it. A few things to be aware of
With that in mind and surprisingly I would expect the huge number of s3objects to be on |
Hi @simcap thanks for the response, Thanks for the tsv tip, that output makes sense and seems to more line up with the Using the below now returns: $ awless -r us-east-2 list s3objects --format tsv --filter bucket=my-bucket-here | wc -l
1001 So 1001 is 1000 objects plus the one header which is the default returned by the s3 api without iterating through any Hope this helps. |
Ok, thanks @res0nat0r . Tomorrow I will look at if the pagination is properly done on our side and put a fix if needed. |
Above commit fixes the issue. Pagination was missing when listing s3object. Reason was: you pay AWS when fetching s3 objects, so at the beginning of our @res0nat0r If you confirm now that it brings back the correct count we can close this issue. (I tested it on my side) (At the moment it is slower than the aws-cli - on this particular API endpoint only given a big count of s3objects. I am going to look if we can improve on that). |
@simcap After doing a Also listing my ~50k objects seems pretty comparable to my $ time aws s3 ls --recursive s3://my-bucket-here | wc -l
49797
real 0m18.126s
user 0m9.561s
sys 0m0.753s
$ time awless -r us-east-2 list s3objects --format tsv --filter bucket=my-bucket-here | wc -l
49798
real 0m17.512s
user 0m15.231s
sys 0m0.580s |
Awesome! Thanks. I will close this issue. Any other problematic issue let us know, i will find the time to fix them before our release v0.1.10 coming up |
Hi,
It seems only a subset of my objects in s3 are being returned by
listobjects
. It doesn't seem to be on an even paging boundary so maybe it is something else? All objects in this bucket are archived to glacier but only a subset appear to be returning.I'll be happy to do any troubleshooting just let me know.
Example:
The text was updated successfully, but these errors were encountered: