HADOOP-15837. DynamoDB table Update can fail S3A FS init.

Contributed by Steve Loughran.
This commit is contained in:
Steve Loughran 2018-10-12 09:48:17 +01:00
parent 52d270ef8c
commit f1fbc56371
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 4 additions and 1 deletions

View File

@ -886,7 +886,6 @@ public class DynamoDBMetadataStore implements MetadataStore {
final String status = description.getTableStatus(); final String status = description.getTableStatus();
switch (status) { switch (status) {
case "CREATING": case "CREATING":
case "UPDATING":
LOG.debug("Table {} in region {} is being created/updated. This may" LOG.debug("Table {} in region {} is being created/updated. This may"
+ " indicate that the table is being operated by another " + " indicate that the table is being operated by another "
+ "concurrent thread or process. Waiting for active...", + "concurrent thread or process. Waiting for active...",
@ -897,6 +896,10 @@ public class DynamoDBMetadataStore implements MetadataStore {
throw new FileNotFoundException("DynamoDB table " throw new FileNotFoundException("DynamoDB table "
+ "'" + tableName + "' is being " + "'" + tableName + "' is being "
+ "deleted in region " + region); + "deleted in region " + region);
case "UPDATING":
// table being updated; it can still be used.
LOG.debug("Table is being updated.");
break;
case "ACTIVE": case "ACTIVE":
break; break;
default: default: