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 4169910122 for ; Tue, 11 Jun 2013 18:50:22 +0000 (UTC) Received: (qmail 52475 invoked by uid 500); 11 Jun 2013 18:50:21 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 52439 invoked by uid 500); 11 Jun 2013 18:50:21 -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 52379 invoked by uid 99); 11 Jun 2013 18:50:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 18:50:21 +0000 Date: Tue, 11 Jun 2013 18:50:21 +0000 (UTC) From: "John Vines (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-1505) MockTable's addMutation does not check for empty mutation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Vines updated ACCUMULO-1505: --------------------------------- Assignee: Ryan Leary > MockTable's addMutation does not check for empty mutation > --------------------------------------------------------- > > Key: ACCUMULO-1505 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1505 > Project: Accumulo > Issue Type: Bug > Components: client > Affects Versions: 1.4.3 > Reporter: Ryan Leary > Assignee: Ryan Leary > Fix For: 1.4.4, 1.5.1, 1.6.0 > > Attachments: accumulo1505.patch > > > When calling addMutation or addMutations on a MockBatchWriter, the updates stored in the mutation are iterated over then committed in the MockTable class. > When this occurs in the TabletServerBatchWriter (eventually called from the BatchWriterImpl), however, the mutation size is first checked and if the mutation size is 0, an IllegalArgumentException is thrown. > In practice, if you have code that tries to submit an empty mutation to a BatchWriter, it will fail and throw an exception in the real world, but this will not be caught in tests against MockAccumulo. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira