-
Notifications
You must be signed in to change notification settings - Fork 632
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
Iterating more than 1k objects failed with ListObjectsV2 but works with ListObjects #1130
Comments
Thanks @gigatexal we'll take a look |
@gigatexal Can you come up with the complete sample code which can help in replicating.
|
I've experienced same problem and client, err := minio.New(endpoint, accessKey, secKey, ssl)
if err != nil {
log.Fatal(err)
}
doneCh := make(chan struct{})
defer close(doneCh)
recursive := true
objectCh := client.ListObjectsV2(bucket, "", recursive, doneCh)
for object := range objectCh {
// delete stuff
} Changing it to V1 or narrowing scope with second argument does the trick. After taking look at code, I think the culprit should be S3 vendor (DigitalOcean Spaces in my case) not setting token: Lines 247 to 249 in 753e5f7
|
So in your case @gigatexal is the vendor Digital Ocean? |
No, just an on premises deployment of Mini on top of Rook on K8s. |
We can't reproduce this with latest MinIO @gigatexal which version are you running ? |
@harshavardhana This runs on an on-prem CephObjectStore using Ceph Mimic 13.2.5. |
Don't understand the context here @christianhuening ? Are you saying there is an issue or not? |
Ah i just wanted to provide context against which kind of S3 implementation @gigatexal is using this. |
Are you saying you are using Ceph not MinIO? @christianhuening - then it looks like a Ceph bug which they need to fix. Because ListObjectsV2 works with MinIO server and AWS S3. |
It is also possible that they don't implement V2 Listing style yet? @christianhuening @gigatexal @zarbis |
Can this be closed then? |
Closing this issue based on the issues in Ceph and digital ocean spaces. Please feel free to re-open the issue if you feel otherwise. |
How can I use S3v1 in mc client ? I got this error when diff a huge folder. |
We cannot @LeoQuote check why we closed the issue. |
@harshavardhana thanks for your reply , I just found a work-around for me , I can use the mc You can use this version if you encounter this same error. |
any command is giving the same error. it has anything to do with size of the bucket? |
Given this simple (possibly not very go-like) function where I iterate through all files, looking for a BACKUP file, and then return the s3://bucket/prefix for a given one among other things.
When using ListObjectsV2 in this manner I kept getting the following error:
Truncated response should have continuation token set
But I get no such error and my application works using ListObjects.
The text was updated successfully, but these errors were encountered: