How DynamoDB client get different retries number in LEGACY retry mode? #3568
Unanswered
QiuHongHao123
asked this question in
Q&A
Replies: 1 comment
-
It seem have format problem in problem description.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As the doc describe, DynamoDB will have up to 8 times retry in LEGACY mode.
But when we build a
RetryPolicy
and overwrite the DynamoDB client config. I found thatnumRetries
only get fromSdkDefaultRetrySetting
and always be set up as 4.So is it a bug issue? Or we have some magical mechanism to guarantee DynamoDB client can get the correct retry number?
private BuilderImpl(RetryMode retryMode) { this.retryMode = retryMode; this.numRetries = SdkDefaultRetrySetting.maxAttempts(retryMode) - 1; this.additionalRetryConditionsAllowed = true; this.backoffStrategy = BackoffStrategy.defaultStrategy(retryMode); this.throttlingBackoffStrategy = BackoffStrategy.defaultThrottlingStrategy(retryMode); this.retryCondition = RetryCondition.defaultRetryCondition(); this.retryCapacityCondition = TokenBucketRetryCondition.forRetryMode(retryMode); }
`
public static Integer maxAttempts(RetryMode retryMode) {
Integer maxAttempts = SdkSystemSetting.AWS_MAX_ATTEMPTS.getIntegerValue().orElse(null);
`
Beta Was this translation helpful? Give feedback.
All reactions