-
Notifications
You must be signed in to change notification settings - Fork 236
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
ListObjects performs un-needed recursive listing on bucket with filesystem provider #575
Comments
Duplicate of #473. You can work around this by setting |
Sorry, did not know it was a dupe, not knowledgeable in Java, how/where would I change this parameter? I guess in |
You need to edit |
Thanks, that worked, tests are fialing though, had to run with:
|
Now the problem is on Windows, the returned sub-folders have the trailing <?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>converted</Name>
<Prefix/>
<KeyCount>2</KeyCount>
<MaxKeys>1000</MaxKeys>
<ContinuationToken/>
<StartAfter/>
<Delimiter>/</Delimiter>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>some-file.txt</Key>
<LastModified>2020-05-01T23:37:35Z</LastModified>
<Size>693</Size>
<StorageClass>STANDARD</StorageClass>
</Contents>
<CommonPrefixes>
<Prefix>some-folder\</Prefix>
</CommonPrefixes>
</ListBucketResult> Which then an S3 client wil try to use to query the subfolder, and everything breaks from then on. |
I have managed to make it work by adding the following to my reverse proxy configuration:
Basically substitute |
Awesome software, just one detail:
When there is a ListObjects request with a
/
delimeter, the filesystem provider should only query the folders, instead it does a recursive listing of all the sub-tree in the bucket (filesystem folder) which is un-needed and very expensive for deep trees with lots of files.Basically in the logs we see one entry per file in the subtree recursivelly!:
Of course any S3 client timesout when the sub-tree is large.
The text was updated successfully, but these errors were encountered: