[ 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)