Bug 1091072
Summary: | Group metrics with no metrics in Cassandra can result in averages that are NaN or contain partial results | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Elias Ross <genman> |
Component: | Monitoring | Assignee: | Nobody <nobody> |
Status: | NEW --- | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.9 | CC: | hrupp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
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: | --- | Target Upstream Version: | |
Embargoed: |
Description
Elias Ross
2014-04-24 19:18:15 UTC
The other question is if NaN should be excluded from baselines and aggregation calculation might be settled in a separate bug. The real issue seems to come from pagination not working correctly. (Still I wonder if NaN handling is correct...) diff --git a/modules/enterprise/server/server-metrics/src/main/java/org/rhq/server/metrics/domain/ListPagedResult.java b/modules/enterprise/server/server-metrics/src/main/java/org/rhq/server/metrics/domai index f3abd20..2e929c5 100644 --- a/modules/enterprise/server/server-metrics/src/main/java/org/rhq/server/metrics/domain/ListPagedResult.java +++ b/modules/enterprise/server/server-metrics/src/main/java/org/rhq/server/metrics/domain/ListPagedResult.java @@ -74,7 +74,7 @@ private ResultSet retrieveNextResultSet(ResultSet existingResultSet, List<Intege while ((existingResultSet == null || existingResultSet.isExhausted()) && ids.size() != 0) { BoundStatement boundStatement = this.preparedStatement.bind(ids.remove(0), new Date(startTime), new Date(endTime)); - return session.execute(boundStatement); + existingResultSet = session.execute(boundStatement); } } catch (NoHostAvailableException e) { throw new CQLException(e); |