-
Notifications
You must be signed in to change notification settings - Fork 846
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
I am getting multiple exceptions while fetching data from dynamo db suddenly. #5569
Comments
@danyal-careem can you share the full stacktrace with the errors? You mentioned the errors started to show up suddenly in August, was there any change in code, SDK version or environment configuration that could have trigger the errors? |
No change in code related to that let me share a full trace with you. |
The message is saying that the request execution didn't complete before the configured 200ms timeout. You can try to increase the timeout in ClientOverrideConfiguration or reduce the number of items in the batch request. Also, note that if there was no code change or SDK version change, the rootcause probably isn't in the SDK, the SDK doesn't change behavior if the code is the same. In these cases you should look into any network, transaction spike or environment configuration changes that could have affected the application run. |
Sorry, the Stacktrace I shared from dev which is clearly mentioned the timeout but that not the case in Prod.
Second one is:
|
Describe the bug
The issue is fetching the data from dynamo db based on user Id. which throws two exceptions. It was working fine till 20th of August suddenly getting those exceptions which getting higher day by day. One more exception we had "Error thrown from TransformingAsyncResponseHandler#onError, ignoring" which was resolved after updating SDK version.
1. java.lang.InterruptedException: null at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) at com.careem.launcher.data.repo.ddb.DDBExpressionUserInfoRepository.loadPartition(DDBExpressionUserInfoRepository.java:225)
2. java.util.concurrent.ExecutionException: software.amazon.awssdk.core.exception.SdkClientException at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) at com.careem.launcher.data.repo.ddb.DDBExpressionUserInfoRepository.loadPartition(DDBExpressionUserInfoRepository.java:225)
JDK image is: eclipse-temurin:22-jdk
SDK version: 2.18.21 (which resolved error, thrown from TransformingAsyncResponseHandler issue)
Code snippet:
Expected Behavior
it has to return data based on userId as it was working before.
No Throttle in db.
Current Behavior
Getting multiple exceptions.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
eclipse-temurin:22-jdk
JDK version used
22
Operating System and version
eclipse-temurin
The text was updated successfully, but these errors were encountered: