milleruntime commented on a change in pull request #99: Replace Thrift types
with TableNotFoundException
URL: https://github.com/apache/accumulo-testing/pull/99#discussion_r306533029
##########
File path:
src/main/java/org/apache/accumulo/testing/randomwalk/concurrent/Config.java
##########
@@ -228,10 +222,8 @@ private void changeNamespaceSetting(RandomDataGenerator
random, State state, Ran
env.getAccumuloClient().namespaceOperations().setProperty(namespace,
setting.property.getKey(), "" + newValue);
} catch (AccumuloException ex) {
- if (ex.getCause() instanceof ThriftTableOperationException) {
- ThriftTableOperationException ttoe = (ThriftTableOperationException)
ex.getCause();
- if (ttoe.type == TableOperationExceptionType.NAMESPACE_NOTFOUND)
- return;
+ if (ex.getCause() instanceof TableNotFoundException) {
Review comment:
Yup, nice catch.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services