You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Atri Sharma (Jira)" <ji...@apache.org> on 2020/04/02 14:27:00 UTC

[jira] [Commented] (ARTEMIS-2688) FileStoreMonitor.calculateUsage Should Check for NaN

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

Atri Sharma commented on ARTEMIS-2688:
--------------------------------------

This is not related to ARTEMIS-2636. FileStoreMonitor.calculateUsage does not check for its arguments, so it is possible to raise an ArithmeticException while using it simply by passing in a 0 for totalUsage parameter.

> FileStoreMonitor.calculateUsage Should Check for NaN
> ----------------------------------------------------
>
>                 Key: ARTEMIS-2688
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2688
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Atri Sharma
>            Priority: Major
>
> calculateUsage does a division today without checking for potential 0 values -- this can lead to NaN issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)