Github user keith-turner commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/243#discussion_r110007369
  
    --- Diff: 
core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
 ---
    @@ -389,14 +389,17 @@ public void addSplits(String tableName, 
SortedSet<Text> partitionKeys) throws Ta
             if (exception.get() != null) {
               executor.shutdownNow();
               Throwable excep = exception.get();
    -          if (excep instanceof TableNotFoundException)
    -            throw (TableNotFoundException) excep;
    -          else if (excep instanceof AccumuloException)
    -            throw (AccumuloException) excep;
    -          else if (excep instanceof AccumuloSecurityException)
    -            throw (AccumuloSecurityException) excep;
    +          if (excep instanceof TableNotFoundException) {
    +            TableNotFoundException tnfe = (TableNotFoundException) excep;
    +            throw new TableNotFoundException(tableId, tableName, "Table 
not found by background thread", tnfe);
    +          } else if (excep instanceof AccumuloSecurityException) {
    +            // base == background accumulo security exception
    +            AccumuloSecurityException base = (AccumuloSecurityException) 
excep;
    +            throw new AccumuloSecurityException(base.getUser(), 
base.asThriftException().getCode(), base.getTableInfo(), excep);
    +          } else if (excep instanceof Error)
    +            throw new Error(excep);
    --- End diff --
    
    I modified the code to throw an Error and then ran the SplitIT.
    
    Below is what the stack trace looks like when I just cast the error.
    ```
    java.lang.NoSuchMethodError
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl.addSplits(TableOperationsImpl.java:415)
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl.access$0(TableOperationsImpl.java:412)
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl$SplitTask.run(TableOperationsImpl.java:349)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at 
org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
        at java.lang.Thread.run(Thread.java:745)
    ```
    
    below is what the stack trace looks like when I wrap the Error... .this has 
the important info that AddSplitIT.java line 62 called addSplits()
    
    ```
    java.lang.Error: java.lang.NoSuchMethodError
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl.addSplits(TableOperationsImpl.java:400)
        at 
org.apache.accumulo.test.functional.AddSplitIT.addSplitTest(AddSplitIT.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NoSuchMethodError
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl.addSplits(TableOperationsImpl.java:415)
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl.access$0(TableOperationsImpl.java:412)
        at 
org.apache.accumulo.core.client.impl.TableOperationsImpl$SplitTask.run(TableOperationsImpl.java:349)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at 
org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
        ... 1 more
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to