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/19 18:57:43 UTC

[GitHub] keith-turner closed pull request #394: ACCUMULO-4836 make online table always wait

keith-turner closed pull request #394: ACCUMULO-4836 make online table always wait
URL: https://github.com/apache/accumulo/pull/394
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java b/core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
index 0c3e0e6c60..7e42334ff8 100644
--- a/core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
+++ b/core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
@@ -1223,6 +1223,8 @@ public void online(String tableName, boolean wait) throws AccumuloSecurityExcept
 
     TableState expectedState = Tables.getTableState(context.getInstance(), tableId, true);
     if (expectedState == TableState.ONLINE) {
+      if (wait)
+        waitForTableStateTransition(tableId, TableState.ONLINE);
       return;
     }
 


 

----------------------------------------------------------------
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