HADOOP-15837. DynamoDB table Update can fail S3A FS init.
Contributed by Steve Loughran. (cherry picked from commit f1fbc563719db88c50d57820b5052880cfd6b1aa)
This commit is contained in:
parent
b67dc5e1d1
commit
2abc4ab60a
@ -807,7 +807,6 @@ void initTable() throws IOException {
|
|||||||
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...",
|
||||||
@ -818,6 +817,10 @@ void initTable() throws IOException {
|
|||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user