Skip to content
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

Fix S3 Client instantiation #49

Merged

Conversation

nathanthorpe
Copy link

@nathanthorpe nathanthorpe commented Jul 18, 2024

S3ClientStore isn't needed as of 2.20 of the AWS SDK, since cross-region access is supported and provides similar functionality as instantiating multiple clients (it caches the region by default).

In addition, the instantiation of the S3Client in S3ClientStore does not respect any configured settings, it just creates the default client. In AmazonS3Factory, the max connections, endpoint, and credentials provider are set up.

The error below is observed using the default client, since 500 threads are used to run multipart copy and only 50 max connections are allowed in the default client.

Caused by: java.util.concurrent.CompletionException: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Timeout waiting for connection from pool

@henriqueribeiro henriqueribeiro merged commit a37cb8a into henriqueribeiro:master Jul 31, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants