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

Noisy warn log "(ProfileFileSupplier()) Retrieved value expiration is in the past [...]" #199

Closed
tlopesPT opened this issue Jan 29, 2025 · 2 comments

Comments

@tlopesPT
Copy link

tlopesPT commented Jan 29, 2025

Context: Kafka integration with MSK using mechanism AWS_MSK_IAM, connecting admin client, consumers and producers.

Connecting Kafka clients to MSK using the "EnhancedProfileCredentialsProvider"/, whether by specifying a profile name or using the (override) default chain provider is generating a lot of warn logs similar to:
WARN s.a.a.utils.cache.CachedSupplier -- (ProfileFileSupplier()) Retrieved value expiration is in the past (2025-01-27T18:16:25.592341Z). Using expiration of 2025-01-27T18:16:26.592584Z

I did not observe this behavior when using fixedProfileFile (tested on S3 integration with IAM using both suppliers), so I'd consider this an issue with the reloadWhenModified ProfileFileSupplier used by the IAMClientCallbackHandler.

I had a look at your implementation but did not figure out what is causing this logging, my understanding is that the file shouldn't be considered stale unless it has been modified since the last read, so this expiration log is confusing and not actionable.

Reproducing: My expectation is that any client connected to MSK using the credential profile provider will see this warning, despite everything working as expected?

This could be an issue for aws-sdk-java-v2, similar to Credentials reloading is not working but I've decided to create it here first as it is easier to put into context.

Edit: looks like this is known and should eventually be addresses, see aws/aws-sdk-java-v2#5839

@tlopesPT
Copy link
Author

tlopesPT commented Feb 5, 2025

Should eventually be addresses by the underlying aws-sdk v2, see aws/aws-sdk-java-v2#5839

@tlopesPT tlopesPT closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

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

No branches or pull requests

1 participant