From a08812a1b10df059b26f6a216e6339490298ba28 Mon Sep 17 00:00:00 2001 From: Sean Mackrory Date: Thu, 12 Jul 2018 16:46:02 +0200 Subject: [PATCH] HADOOP-15349. S3Guard DDB retryBackoff to be more informative on limits exceeded. Contributed by Gabor Bota. --- .../apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java index 116827dd4f..43849b1b14 100644 --- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java +++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java @@ -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);