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: us...@infra.apache.org With regards, Apache Git Services