dataroaring opened a new pull request, #60248: URL: https://github.com/apache/doris/pull/60248
## Summary - Fix thread leak in FE caused by uncached AWS SDK credential providers - Each credential provider (InstanceProfileCredentialsProvider, StsAssumeRoleCredentialsProvider, etc.) creates internal ScheduledExecutorService threads for credential refresh - Without caching, every S3/Glue operation creates new providers, causing unbounded thread growth (130,000+ threads) ## Changes - **AwsCredentialsProviderFactory**: Add ConcurrentMap caches for V1/V2 credential providers by mode - **S3Util**: Cache default chain provider, DefaultCredentialsProvider, V2 chain provider, and role-based credentials - **S3Properties**: Cache InstanceProfileCredentialsProvider and role-based credentials by region:roleArn:externalId - **AWSGlueMetaStoreBaseProperties**: Cache default chain provider and role-based credentials ## Test plan - Deploy FE with the fix and monitor thread count using `jstack` or `jcmd` - Verify `sdk-ScheduledExecutor-*` threads no longer accumulate - Verify S3/Glue catalog operations still work correctly Closes #60108 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
