HADOOP-15349. S3Guard DDB retryBackoff to be more informative on limits exceeded. Contributed by Gabor Bota.
This commit is contained in:
parent
4f3f9391b0
commit
a08812a1b1
@ -655,7 +655,8 @@ private void retryBackoff(int retryCount) throws IOException {
|
||||
retryCount, 0, true);
|
||||
if (action.action == RetryPolicy.RetryAction.RetryDecision.FAIL) {
|
||||
throw new IOException(
|
||||
String.format("Max retries exceeded (%d) for DynamoDB",
|
||||
String.format("Max retries exceeded (%d) for DynamoDB. This may be"
|
||||
+ " because write threshold of DynamoDB is set too low.",
|
||||
retryCount));
|
||||
} else {
|
||||
LOG.debug("Sleeping {} msec before next retry", action.delayMillis);
|
||||
|
Loading…
Reference in New Issue
Block a user