Adding logging to ProvisionedThroughputExceededException.

This commit is contained in:
Sahil Palvia 2017-09-13 16:56:24 -07:00
parent 1ec0b656c9
commit 5b06cb1c7a

View file

@ -564,6 +564,7 @@ public class LeaseManager<T extends Lease> implements ILeaseManager<T> {
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