HADOOP-15349. S3Guard DDB retryBackoff to be more informative on limits exceeded. Contributed by Gabor Bota.

This commit is contained in:
Sean Mackrory 2018-07-12 16:46:02 +02:00
parent 4f3f9391b0
commit a08812a1b1

View File

@ -655,7 +655,8 @@ private void retryBackoff(int retryCount) throws IOException {
retryCount, 0, true); retryCount, 0, true);
if (action.action == RetryPolicy.RetryAction.RetryDecision.FAIL) { if (action.action == RetryPolicy.RetryAction.RetryDecision.FAIL) {
throw new IOException( 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)); retryCount));
} else { } else {
LOG.debug("Sleeping {} msec before next retry", action.delayMillis); LOG.debug("Sleeping {} msec before next retry", action.delayMillis);