This is an automated email from the ASF dual-hosted git repository.
hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new b10d71d [AMBARI-25587] Metrics cannot be stored and the exception
message is null when metric value is NaN (#3262) (akiyamaneko via dgrinenko)
b10d71d is described below
commit b10d71deecb8b94e77f3f34da7072306a70ef30e
Author: neko <[email protected]>
AuthorDate: Wed Nov 25 00:18:35 2020 +0800
[AMBARI-25587] Metrics cannot be stored and the exception message is null
when metric value is NaN (#3262) (akiyamaneko via dgrinenko)
---
.../ambari/metrics/core/timeline/aggregators/AggregatorUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
index 9848e6b..a1fab37 100644
---
a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/AggregatorUtils.java
+++
b/ambari-metrics/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;
}