You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ryan Leary (JIRA)" <ji...@apache.org> on 2013/06/11 18:29:20 UTC

[jira] [Created] (ACCUMULO-1505) MockTable's addMutation does not check for empty mutation

Ryan Leary created ACCUMULO-1505:
------------------------------------

             Summary: 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
             Fix For: 1.4.4


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