milleruntime closed pull request #429: Handle RW unexpected table state URL: https://github.com/apache/accumulo/pull/429
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/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 4940fbc466..0a1109a7cc 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.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 void visit(State state, Environment env, Properties props) throws Excepti 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; + } } - } } ---------------------------------------------------------------- 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