You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/03/06 15:14:57 UTC

[GitHub] keith-turner commented on a change in pull request #395: ACCUMULO-4835 Make TableOps throw TableNotFound

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_r172548259
 
 

 ##########
 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:
   After clearing the cache could store the return value of getTableState in a local var (could call it `currentState`).  Then could avoid two calls to getTableState after clearing the cache.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services