accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-4420) Possible divide-by-zero exception when closing BatchWriter
Date Wed, 24 Aug 2016 23:43:20 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-4420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15435957#comment-15435957
] 

Christopher Tubbs commented on ACCUMULO-4420:
---------------------------------------------

Java implements IEEE 754 for its handling of 0 as a divisor, hence the NaN. We should make
sure that these get replaced with something sensible to display.

> 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.6.5, 1.7.2
>            Reporter: Daniel Blum
>            Priority: Minor
>             Fix For: 1.6.6, 1.7.3, 1.8.1
>
>
> 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)

Mime
View raw message