Accumulo
  1. Accumulo
  2. ACCUMULO-2328

Extraneous IllegalArgumentException in DeleteIterCommand#execute()

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      namespaces and tables are checked at the beginning of execute.
      So the last else branch won't be reached below:

          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");
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development