-
Notifications
You must be signed in to change notification settings - Fork 843
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
All requests to DynamoDB fail with Connection pool shut down #5567
Comments
Check our Troubleshooting Guide: FAQ: How do I fix "java.lang.IllegalStateException: Connection pool shut down" error? |
Thanks for the reply. I did check everything in the docs. There don't seem to be any Errors thrown. I checked the memory usage and it appeared to be relatively low. So I'm out of ideas. I'll keep digging / profiling, but if there is anything else I could try, please let me know. |
The only thing I can think of is Spring Bean may be automatically calling close(), see Bean#destroyMethod(). Try disabling the destroy method. |
Thanks! I'll try that. |
As per the Spring Docs, the @bean only tries to automatically close if a
As far as I can tell, DynamoDbEnhancedClient |
Describe the bug
Without any apparent reason, sometimes I get this exception
java.lang.IllegalStateException: Connection pool shut down
and all requests to DynamoDB fail.I am using DynamoDB Enhanced Client:
And have a single client running in the app configured with Spring @bean
Expected Behavior
I expect that no exceptions arise.
Current Behavior
stacktrace_2.txt
stacktrace_1.txt
Reproduction Steps
This happens very rarely, without an apparent reason. Sometimes even months in between. I could not find what causes it.
Possible Solution
No response
Additional Information/Context
I am performing some queries in Async context using completable future:
AWS Java SDK version used
software.amazon.awssdk 2.21.37
JDK version used
amazoncorretto:21.0.1
Operating System and version
amazoncorretto:21.0.1
The text was updated successfully, but these errors were encountered: