-
Notifications
You must be signed in to change notification settings - Fork 853
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
Mysterious "Connection Pool Closed" Error #4221
Comments
"Connection Pool Closed" indicates the connection pool was closed prematurely. The SDK does not close pools that are active. If you didn't explicitly closed the client, look for processes external to the SDK that can be closing the STS client, sometimes indirectly. Also, investigate the logs for any OutOfMemory errors. Sometimes the underlying HTTP client closes the connection pool if there's an error. Can you provide the stacktrace that shows the "Connection Pool Closed" message? Moving this to the |
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
Hello, I am here to continue Khongchai's work. Our behavior is similar to the issue described in this link: [BUG: S3 Connection pool shut down for S3Client](aws/aws-sdk-java#1282) Currently, I am in the process of reproducing the problem, and I will promptly post the results of the reproduction once it is completed. |
@pewtpong noted. |
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
I can see the same issue. I'm using Micronaut aws sdk which creates the credentials this way:
` |
Describe the bug
Calling
putObject
with thes3AsyncClient
fromsoftware.amazon.awssdk.services.s3.S3AsyncClient
while usingWebIdentityTokenFileCredentialsProvider
as the credential provider will cause the "connection pool closed" error fromAwsSyncClientHandler
the STS library uses.We were using AWS SDK version
2.20.19
. Upgrading to newer ones didn't solve our problem, but when we downgraded to2.16.18
the problem disappeared.When this error happens, all subsequent requests to the endpoint that uses this library will throw the same error, the only solution is to restart the microservice. I will provide the stack trace here, this stack shows the assertion error at the HTTP client level, but we don't know who closed it (still trying to reproduce it locally so we can use the debugger to help us).
Expected Behavior
The error should not be thrown. We didn't call any
close
on any HTTP client or thread pools.Current Behavior
Once we deploy our microservice, it will function normally, then fail within an hour -- likely after having handled a number of requests from our test team.
Reproduction Steps
Initialization
Calling
putObject
Calling putObject with this setup code a few times...or sporadically for an hour and the error appeared.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.20.19
JDK version used
jdk-11
Operating System and version
"linux", version: "3.10.0-1160.6.1.el7.x86_64", arch: "amd64", family: "unix"
The text was updated successfully, but these errors were encountered: