accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milleruntime <>
Subject [GitHub] accumulo pull request #210: ACCUMULO-4577: modified exception thrown by Tabl...
Date Thu, 02 Feb 2017 19:24:51 GMT
Github user milleruntime commented on a diff in the pull request:
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/ ---
    @@ -1320,9 +1356,9 @@ public void splitTablet(TInfo tinfo, TCredentials credentials, TKeyExtent
           String namespaceId;
           try {
             namespaceId = Tables.getNamespaceId(getInstance(), tableId);
    -      } catch (IllegalArgumentException ex) {
    -        // table does not exist, try to educate the client
    -        throw new NotServingTabletException(tkeyExtent);
    +      } catch (TableNotFoundException ex) {
    +        // tableOperationsImpl catches ThriftSeccurityException and checks for missing
    +        throw new ThriftSecurityException(credentials.getPrincipal(), SecurityErrorCode.TABLE_DOESNT_EXIST);
    --- End diff --
    The client method that calls TableOperationsImpl.addSplits() has a catch for ThriftSecurityException
where it checks to see if the table exists.

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 or file a JIRA ticket
with INFRA.

View raw message