accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-2328) Extraneous IllegalArgumentException in DeleteIterCommand#execute()
Date Wed, 05 Feb 2014 19:18:15 GMT
Ted Yu created ACCUMULO-2328:
--------------------------------

             Summary: Extraneous IllegalArgumentException in DeleteIterCommand#execute()
                 Key: ACCUMULO-2328
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2328
             Project: Accumulo
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


namespaces and tables are checked at the beginning of execute.
So the last else branch won't be reached below:
{code}
    if (namespaces) {
      shellState.getConnector().namespaceOperations().removeIterator(OptUtil.getNamespaceOpt(cl,
shellState), name, scopes);
    } else if (tables) {
      shellState.getConnector().tableOperations().removeIterator(OptUtil.getTableOpt(cl, shellState),
name, scopes);
    } else {
      throw new IllegalArgumentException("No table or namespace specified");
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message