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)