Skip to content

Fix aws pool shutdown#944

Merged
aprudhomme merged 2 commits intoYelp:mainfrom
aprudhomme:fix_aws_pool_shutdown
Mar 26, 2026
Merged

Fix aws pool shutdown#944
aprudhomme merged 2 commits intoYelp:mainfrom
aprudhomme:fix_aws_pool_shutdown

Conversation

@aprudhomme
Copy link
Copy Markdown
Contributor

This branch does two main things:

  • Creates a separate credentials provider for the sync and async s3 clients
  • Changes DefaultCredentialsProvider from using create() to builder().build()

The create method is deprecated, and actually just returns a static instance. This means that the instance is shared by all clients. Using the builder method ensures each client gets its own instance. This shared instance is why we were seeing pool shutdown issues when the credentials tried to refresh.

I deployed this change on a cluster and it has been running for several hours without seeing the issue.

@aprudhomme aprudhomme requested review from sarthakn7 and vim345 March 26, 2026 21:13
@aprudhomme aprudhomme merged commit c977109 into Yelp:main Mar 26, 2026
1 check 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.

3 participants