q-nathangrand commented on issue #11761: URL: https://github.com/apache/pinot/issues/11761#issuecomment-1825948281
I came across this whilst googling around the same issue and just wanted to post my findings in case it helps you. For me, the cause of the issue was that `DefaultCredentialsProvider.create()` doesn't create a new 'CredentialsProvider' each time you call it, but points to a single 'global' instance. If you use this 'CredentialsProvider' in any client that gets closed, or close the provider itself, then this single 'global' instance is closed. This goes unnoticed until an attempt is made to refresh a token after an hour. I made a new 'CredentialsProvider' each time I created a client using `DefaultCredentialsProvider.builder().build()` to solve this. -- 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]
