Adding logging to ProvisionedThroughputExceededException.
This commit is contained in:
parent
1ec0b656c9
commit
5b06cb1c7a
1 changed files with 1 additions and 0 deletions
|
|
@ -564,6 +564,7 @@ public class LeaseManager<T extends Lease> implements ILeaseManager<T> {
|
||||||
protected DependencyException convertAndRethrowExceptions(String operation, String leaseKey, AmazonClientException e)
|
protected DependencyException convertAndRethrowExceptions(String operation, String leaseKey, AmazonClientException e)
|
||||||
throws ProvisionedThroughputException, InvalidStateException {
|
throws ProvisionedThroughputException, InvalidStateException {
|
||||||
if (e instanceof ProvisionedThroughputExceededException) {
|
if (e instanceof ProvisionedThroughputExceededException) {
|
||||||
|
LOG.error("ProvisionedThroughputExceededException thrown, increase the IOPs on the lease table", e);
|
||||||
throw new ProvisionedThroughputException(e);
|
throw new ProvisionedThroughputException(e);
|
||||||
} else if (e instanceof ResourceNotFoundException) {
|
} else if (e instanceof ResourceNotFoundException) {
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue