Closed dyutishb closed 3 months ago
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.
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.
Describe the bug
We are using the aws v2 sdk on of our processes which ran out of file descriptors which led us to investigate the open ones. We can see new FDs being added and not closed even if we do simple headBucket calls to s3. Example of open FDs added:
Here's how we are building our client:
The same is not seen with the v1 SDK.
Expected Behavior
The file descriptors created by any operation should be closed when the operation completes.
Current Behavior
New FDs being added and not closed on every request.
Reproduction Steps
Create any process (imagine an api server which makes request to s3) which instantiates a s3 client and makes some basic requests like headBucket, keep the process up even after the reuqest is completed. Compare the open file descriptors before and after the request using sudo
lsof -p <pid>
orsudo ls -l /proc/<pid>/fd
. There should be no new open FDs added due to a request.Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.25.26
JDK version used
openjdk version "1.8.0_402"
Operating System and version
Rocky Linux release 9.4 (Blue Onyx)