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 <avija...@hortonworks.com>
Authored: Thu Aug 10 16:47:55 2017 -0700
Committer: Aravindan Vijayan <avija...@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) {

Reply via email to