From f1fbc563719db88c50d57820b5052880cfd6b1aa Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 12 Oct 2018 09:48:17 +0100 Subject: [PATCH] HADOOP-15837. DynamoDB table Update can fail S3A FS init. Contributed by Steve Loughran. --- .../apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java index 4c4043ebc47..918e7d09359 100644 --- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java +++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java @@ -886,7 +886,6 @@ public class DynamoDBMetadataStore implements MetadataStore { final String status = description.getTableStatus(); switch (status) { case "CREATING": - case "UPDATING": LOG.debug("Table {} in region {} is being created/updated. This may" + " indicate that the table is being operated by another " + "concurrent thread or process. Waiting for active...", @@ -897,6 +896,10 @@ public class DynamoDBMetadataStore implements MetadataStore { throw new FileNotFoundException("DynamoDB table " + "'" + tableName + "' is being " + "deleted in region " + region); + case "UPDATING": + // table being updated; it can still be used. + LOG.debug("Table is being updated."); + break; case "ACTIVE": break; default: