You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2018/04/19 17:42:22 UTC

[accumulo] branch 1.9 updated: Handle RW unexpected table state (#429)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/1.9 by this push:
     new 82a86ee  Handle RW unexpected table state (#429)
82a86ee is described below

commit 82a86eed1e9d6a1dc572d63bcf5e88f4ddd7d83a
Author: Mike Miller <mm...@apache.org>
AuthorDate: Thu Apr 19 13:42:19 2018 -0400

    Handle RW unexpected table state (#429)
---
 .../apache/accumulo/test/randomwalk/concurrent/OfflineTable.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/OfflineTable.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/OfflineTable.java
index 4940fbc..0a1109a 100644
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/OfflineTable.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/OfflineTable.java
@@ -23,6 +23,7 @@ import java.util.Properties;
 import java.util.Random;
 import java.util.concurrent.TimeUnit;
 
+import org.apache.accumulo.core.client.AccumuloException;
 import org.apache.accumulo.core.client.Connector;
 import org.apache.accumulo.core.client.TableNotFoundException;
 import org.apache.accumulo.test.randomwalk.Environment;
@@ -50,7 +51,12 @@ public class OfflineTable extends Test {
       log.debug("Onlined " + tableName);
     } catch (TableNotFoundException tne) {
       log.debug("offline or online failed " + tableName + ", doesnt exist");
+    } catch (AccumuloException ae) {
+      if (ae.getMessage().startsWith("Unexpected table state")) {
+        log.debug("offline or online failed " + tableName + ", unexpected table state");
+      } else {
+        throw ae;
+      }
     }
-
   }
 }

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