From 656b17ceaabd511da5f12cf223468a7e81f48407 Mon Sep 17 00:00:00 2001 From: Sahil Palvia Date: Fri, 15 Sep 2017 11:04:30 -0700 Subject: [PATCH] Adding logging for DynamoDB ProvisionedThroughputExceededExcpetion (#212) * Adding logging to ProvisionedThroughputExceededException. * Addressing CR comments and changing log level from error to warn * Updated the comments as per cr comments. --- .../com/amazonaws/services/kinesis/leases/impl/LeaseManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/amazonaws/services/kinesis/leases/impl/LeaseManager.java b/src/main/java/com/amazonaws/services/kinesis/leases/impl/LeaseManager.java index 226756eb..6a70eb90 100644 --- a/src/main/java/com/amazonaws/services/kinesis/leases/impl/LeaseManager.java +++ b/src/main/java/com/amazonaws/services/kinesis/leases/impl/LeaseManager.java @@ -564,6 +564,7 @@ public class LeaseManager implements ILeaseManager { protected DependencyException convertAndRethrowExceptions(String operation, String leaseKey, AmazonClientException e) throws ProvisionedThroughputException, InvalidStateException { if (e instanceof ProvisionedThroughputExceededException) { + LOG.warn("Provisioned Throughput on the lease table has been exceeded. It's recommended that you increase the IOPs on the table. Failure to increase the IOPs may cause the application to not make progress."); throw new ProvisionedThroughputException(e); } else if (e instanceof ResourceNotFoundException) { // @formatter:on