keith-turner commented on a change in pull request #395: ACCUMULO-4835 Make
TableOps throw TableNotFound
URL: https://github.com/apache/accumulo/pull/395#discussion_r172585085
##########
File path:
core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
##########
@@ -1072,6 +1072,8 @@ private void waitForTableStateTransition(String tableId,
TableState expectedStat
if (Tables.getTableState(context.getInstance(), tableId) !=
expectedState) {
if (!Tables.exists(context.getInstance(), tableId))
throw new TableDeletedException(tableId);
+ if (Tables.getTableState(context.getInstance(), tableId) ==
TableState.DELETING)
Review comment:
To properly account for changes between the times the two calls are made a
loop would be needed. However the wider code is in a loop, so its not needed
here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services