You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/03/27 05:22:52 UTC
[jira] [Resolved] (ACCUMULO-2328) Extraneous
IllegalArgumentException in DeleteIterCommand#execute()
[ 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)