Reputation: 5884
How to handle software.amazon.awssdk.services.dynamodb.model.DynamoDbExceptions ? Does the DynamoDbClient client it self retry on these exceptions or should the implementation take care of that? Which exceptions does the the built in retry take care of?
Upvotes: 1
Views: 2419
Reputation: 14849
For some errors the call can be retried, some should not be retried without fixing the call. AWS enumerate those here. Underneath each error you will see OK to retry?
. An example of a call that can be retried without alteration is LimitExceededException
, which indicates too many calls have been made from the client in a short space of time. The same call in future may succeed.
The only exception that the SDKs handle for you is the ProvisionedThroughputExceededException
. By default the SDK will retry 10 times for you - this behaviour is configurable. If the SDK still fails, it throws the error up to your application, so you still need to handle the error in some way.
Upvotes: 4