Github user joshelser commented on a diff in the pull request: https://github.com/apache/accumulo/pull/243#discussion_r110003407 --- 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 -- Why not just `throw (Error) excep`?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---