accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject [accumulo] branch 1.7 updated: ACCUMULO-4836 make online table always wait (#394)
Date Mon, 19 Mar 2018 18:35:13 GMT
This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch 1.7
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.7 by this push:
     new c4f3685  ACCUMULO-4836 make online table always wait (#394)
c4f3685 is described below

commit c4f36852a2c244b83705fe4f04df8bc450dd39d1
Author: Keith Turner <kturner@apache.org>
AuthorDate: Wed Feb 28 19:18:18 2018 -0500

    ACCUMULO-4836 make online table always wait (#394)
---
 .../java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java  | 2 ++
 1 file changed, 2 insertions(+)

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 d976c4d..c01b775 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
@@ -1229,6 +1229,8 @@ public class TableOperationsImpl extends TableOperationsHelper {
 
     TableState expectedState = Tables.getTableState(context.getInstance(), tableId, true);
     if (expectedState == TableState.ONLINE) {
+      if (wait)
+        waitForTableStateTransition(tableId, TableState.ONLINE);
       return;
     }
 

-- 
To stop receiving notification emails like this one, please contact
kturner@apache.org.

Mime
View raw message