(short issue description) #3072
Labels
bug
This issue is a bug.
closed-for-staleness
p3
This is a minor priority issue
response-requested
Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.
Describe the bug
I'm getting a
Connection pool shut down
exception when using a LambdaClient. The LambdaClient is created each time I need to call the lambda as the config can change.After what appears to be a random number of calls it starts failing and throwing a
Connection pool shut down
exception. It will then fail with every subsequent call and is only resolved by restarting the service.It's strange as we're creating the LambdaClient each time and it should call
.close()
as it's using a try-with-resource statement. It's as though there is something stored globally that is being shut down which means any new LambdaClients will fail to make a connection.I've also noticed this error seems to occur after the service has been running for 60 minutes (I can't be certain). It works fine for many requests and then starts failing every time.
Exception
Why is the connection pool closed for a new LambdaClient?
Expected Behavior
A LambdaClient should be able to be created and disposed without affecting other LambdaClients.
Current Behavior
A newly created LambdaClient throws an exception due to the connection pool being shutdown.
Reproduction Steps
This isn't easily reproduced. We only have this piece of code that creates a LambdaClient, makes a request and closes and this starts failing after the service has been running for some time.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.21.11
JDK version used
Amazon Corretto: 17
Operating System and version
Amazon Linux: 2
The text was updated successfully, but these errors were encountered: