From 5b06cb1c7a12656f4b96e6a788febfa28f324678 Mon Sep 17 00:00:00 2001 From: Sahil Palvia Date: Wed, 13 Sep 2017 16:56:24 -0700 Subject: [PATCH] Adding logging to ProvisionedThroughputExceededException. --- .../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..3efdff41 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.error("ProvisionedThroughputExceededException thrown, increase the IOPs on the lease table", e); throw new ProvisionedThroughputException(e); } else if (e instanceof ResourceNotFoundException) { // @formatter:on