-
Notifications
You must be signed in to change notification settings - Fork 840
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
Socket timeout while reading the data from s3 bucket after upgrading of aws sdk 2.x #4587
Comments
@sandeepsinnha2109 please provide a reproducible code and the full stacktrace of the error. Socket timeout errors indicate the operation timed out before if finished, and it can have several causes like latency in the network connectivity, service side latency, etc. If it's something you see constantly, consider increasing the relevant timeouts in the client configuration of the HTTP client you are using. |
Hi, we are getting issues related to JDBC connection error and java.net.SocketException: Socket is closed, when our on-prem application is ingesting data from AWS application APIs to download files/data, which is in RDS and S3. |
DEBUG org.springframework.web.client.RestTemplate - Response 500 INTERNAL_SERVER_ERROR |
@debora-ito please help me on above response |
It looks like your RDS is not reachable, this is likely a network configuration issue (although "500 INTERNAL_SERVER_ERROR" indicates a server side issue, but with the log snippet that was provided I can't tell which server you tried to connect to). You can try the troubleshooting steps listed here - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html There isn't enough information here to help you with more specific guidance. If you are using the Java SDK to connect to RDS or S3, please share a self-contained sample code we can use to reproduce the error. Also provide full logs and stacktraces with the error. Keep in mind that this channel is intended to talk about SDK issues, not aws issues in general. We may lack the expertise to help with the latter. |
@debora-ito SDK-1.12.261 Download code: Earlier JDBC connection issue we suspect was due to the below exception which is blocking database connection until file downloads. |
Can you share the full stacktrace? |
Hi @debora-ito , |
The error is not coming from the Java SDK, there's no Java SDK class in the stacktrace. "Unable to acquire JDBC Connection" indicates a network connectivity issue. Check for network configurations that would prevent the database to be reachable. I'll go ahead and close this, as there's no indication the error is caused by the Java SDK. |
|
Describe the bug
While downloading the data from s3 bucket facing the issue that is Socket time out exception.
This was happening after the upgrade of aws sdk2.x
Expected Behavior
File should be downloaded from s3 bucket.
Current Behavior
-Sockettimeout on reads from s3 bucket.
We are seeing out of memory for heap space.
Reproduction Steps
Download the file from s3 bucket.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.x
JDK version used
17
Operating System and version
Kubernetes Cluster
The text was updated successfully, but these errors were encountered: