HADOOP-16642. ITestDynamoDBMetadataStoreScale fails when throttled.

Contributed by Steve Loughran.

Change-Id: If9b4ebe937200c17d7fdfb9923e6ae0ab4c541ef
This commit is contained in:
Steve Loughran 2020-01-08 14:28:20 +00:00
parent 17aa8f6764
commit 52cc20e9ea
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 3 additions and 5 deletions

View File

@ -210,11 +210,9 @@ public class ITestDynamoDBMetadataStoreScale
// if this doesn't throttle, all is well.
super.test_020_Moves();
} catch (AWSServiceThrottledException ex) {
// if the service was throttled, we expect the exception text
GenericTestUtils.assertExceptionContains(
DynamoDBMetadataStore.HINT_DDB_IOPS_TOO_LOW,
ex,
"Expected throttling message");
// if the service was throttled, all is good.
// log and continue
LOG.warn("DDB connection was throttled", ex);
} finally {
LOG.info("Statistics {}", tracker);
}