You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Daniel Blum (JIRA)" <ji...@apache.org> on 2016/08/22 20:43:20 UTC

[jira] [Created] (ACCUMULO-4420) Possible divide-by-zero exception when closing BatchWriter

Daniel Blum created ACCUMULO-4420:
-------------------------------------

             Summary: Possible divide-by-zero exception when closing BatchWriter
                 Key: ACCUMULO-4420
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4420
             Project: Accumulo
          Issue Type: Bug
          Components: core
    Affects Versions: 1.7.2, 1.6.5
            Reporter: Daniel Blum
            Priority: Minor


TabletServerBatchWriter.logStats will throw a divide-by-zero exception if numBatches is 0 (i.e., no batches have been written).

There are actually no checks for 0 divisors anywhere in the method, so other such exceptions are possible, as are lesser issues ("Average send rate" and some other stats come out as NaN when no batches have been written, for example).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)