Skip to content
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

Revisit DynamoDB Retry Policy #431

Closed
shorea opened this issue Feb 27, 2018 · 2 comments
Closed

Revisit DynamoDB Retry Policy #431

shorea opened this issue Feb 27, 2018 · 2 comments

Comments

@shorea
Copy link
Contributor

shorea commented Feb 27, 2018

The retry policy for DynamoDB V1 is set to retry 10 times. This seems excessive and we should work with the service team to come up with more reasonable default retry behavior.

@RyanHoldren
Copy link

RyanHoldren commented Mar 8, 2018

I have been using the default retry policy with DynamoDBAsyncClient and a DynamoDB table with "Auto Scaling" enabled. I am seeing a lot of ProvisionedThroughputExceededException when my reads or writes spike, which surprised me. I assumed the default retry policy to wait long enough for additional capacity to be allocated, but this seems not to be the case.

I suppose I have two questions:

  1. Can DynamoDBAsyncClient be configured to wait long enough to that "Auto Scaling" has time to provision more capacity, so I stop seeing ProvisionedThroughputExceededException bubble up?
  2. Would this be a useful configuration to bake into the SDK? Perhaps even the default configuration?

@zoewangg
Copy link
Contributor

@RyanHoldren We've made a couple of fixes on the retrying logic. Can you try with the latest version? 2.0.0-Preview-11 as of now

Fixed via #574

aws-sdk-java-automation added a commit that referenced this issue Feb 25, 2019
…0b11ba50

Pull request: release <- staging/bc04d1be-d394-4f3e-a383-9c050b11ba50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants