Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 381BD10042 for ; Wed, 5 Feb 2014 19:18:29 +0000 (UTC) Received: (qmail 24689 invoked by uid 500); 5 Feb 2014 19:18:21 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 24584 invoked by uid 500); 5 Feb 2014 19:18:17 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 24494 invoked by uid 99); 5 Feb 2014 19:18:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 19:18:15 +0000 Date: Wed, 5 Feb 2014 19:18:15 +0000 (UTC) From: "Ted Yu (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-2328) Extraneous IllegalArgumentException in DeleteIterCommand#execute() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)