You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/15 14:59:32 UTC
[ambari-metrics] branch master updated: AMBARI-25587: Metrics cannot be stored and the exception message is null when metric value is NaN (#72)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ambari-metrics.git
The following commit(s) were added to refs/heads/master by this push:
new 3dd197a AMBARI-25587: Metrics cannot be stored and the exception message is null when metric value is NaN (#72)
3dd197a is described below
commit 3dd197a2c08b244938d520c6559bb8083a540213
Author: lucasbak <lu...@gmail.com>
AuthorDate: Tue Nov 15 15:59:25 2022 +0100
AMBARI-25587: Metrics cannot be stored and the exception message is null when metric value is NaN (#72)
---
.../ambari/metrics/core/timeline/aggregators/AggregatorUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java b/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
index 9848e6b..a1fab37 100644
--- a/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
+++ b/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
@@ -49,7 +49,7 @@ public class AggregatorUtils {
if (metricValues != null && !metricValues.isEmpty()) {
for (Double value : metricValues.values()) {
// TODO: Some nulls in data - need to investigate null values from host
- if (value != null) {
+ if (value != null && !value.isNaN()) {
if (value > max) {
max = value;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org