Bug 1126500

Summary: Graphs fail to render with 'java.lang.IllegalArgumentException: lowValue' in log
Product: [Other] RHQ Project Reporter: John Sanda <jsanda>
Component: Core Server, Storage NodeAssignee: RHQ Project Maintainer <rhq-maint>
Status: ON_QA --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: GA   
Target Release: RHQ 4.13   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1126495    

Description John Sanda 2014-08-04 15:22:54 UTC
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:

Actual results:

Expected results:

Additional info:

Comment 1 John Sanda 2014-08-04 15:49:04 UTC
I have added logic to InvalidMetricsManager to treat aggregate metrics having a value of Double.NaN as invalid.

master commit hash: 1275e5dc862