ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avija...@apache.org
Subject ambari git commit: AMBARI-21705 : Metrics Collector start failed due to 'Unable to initialize HA controller'. (avijayan)
Date Thu, 10 Aug 2017 23:48:00 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 a7e8dd9d2 -> 601cd7dae


AMBARI-21705 : Metrics Collector start failed due to 'Unable to initialize HA controller'.
(avijayan)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/601cd7da
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/601cd7da
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/601cd7da

Branch: refs/heads/branch-2.6
Commit: 601cd7daedf70449a6e186355bd6786dbf15f5ce
Parents: a7e8dd9
Author: Aravindan Vijayan <avijayan@hortonworks.com>
Authored: Thu Aug 10 16:47:55 2017 -0700
Committer: Aravindan Vijayan <avijayan@hortonworks.com>
Committed: Thu Aug 10 16:47:55 2017 -0700

----------------------------------------------------------------------
 .../metrics/timeline/availability/MetricCollectorHAController.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/601cd7da/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/MetricCollectorHAController.java
----------------------------------------------------------------------
diff --git a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/MetricCollectorHAController.java
b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/MetricCollectorHAController.java
index addb14e..a06f4e8 100644
--- a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/MetricCollectorHAController.java
+++ b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/availability/MetricCollectorHAController.java
@@ -138,8 +138,8 @@ public class MetricCollectorHAController {
         if (CollectionUtils.isEmpty(nodes) || !nodes.contains(instanceConfig.getInstanceName()))
{
           LOG.info("Adding participant instance " + instanceConfig);
           admin.addInstance(clusterName, instanceConfig);
-          success = true;
         }
+        success = true;
       } catch (HelixException | ZkNoNodeException ex) {
         LOG.warn("Helix Cluster not yet setup fully.");
         if (i < tries - 1) {


Mime
View raw message