Description of problem: Prior to RHQ 4.12 it was possible to produce an aggregate metric like {min: Double.NaN, max: Double.NaN, avg: 0.0}. This was caused in part by not handling late measurement reports. When these invalid metrics are included in the result set for a query to fetch data points for a graph, it could result in an IllegalArgumentException being thrown from MetricsServer.createComposites. InvalidMetricsManager was introduced to handle metrics where max < avg or min > avg, but it also needs to treat metrics having NaN as a value as invalid. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I have added logic to InvalidMetricsManager to treat aggregate metrics having a value of Double.NaN as invalid. master commit hash: 1275e5dc862