[AMBARI-24556] Aggregation across clusters are not being done in AMS for even when...
authoravijayanhwx <avijayan@hortonworks.com>
Fri, 14 Sep 2018 04:22:02 +0000 (21:22 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Sep 2018 04:22:02 +0000 (21:22 -0700)
ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/timeline/aggregators/TimelineMetricClusterAggregatorSecond.java

index 785b416..7001aa6 100644 (file)
@@ -101,9 +101,9 @@ public class TimelineMetricClusterAggregatorSecond extends AbstractTimelineAggre
     }
 
     if (Boolean.valueOf(metricsConf.get(TIMELINE_METRICS_SUPPORT_MULTIPLE_CLUSTERS, "false"))) {
-      this.timelineMetricReadHelper = new TimelineMetricReadHelper(metadataManager, true);
-    } else {
       this.timelineMetricReadHelper = new TimelineMetricReadHelper(metadataManager);
+    } else {
+      this.timelineMetricReadHelper = new TimelineMetricReadHelper(metadataManager, true);
     }
   }