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] [Resolved] (ACCUMULO-2328) Extraneous IllegalArgumentException in DeleteIterCommand#execute()
Date Fri, 27 Mar 2015 04:22:52 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu resolved ACCUMULO-2328.
------------------------------
    Resolution: Later

> 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
>              Labels: newbie
>
> 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.3.4#6332)

Mime
View raw message