This is an automated email from the ASF dual-hosted git repository.

mpapirkovskyy pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4945cd0  AMBARI-24845. Sometimes host status still in heartbeat lost 
after agent become heartbeating. (mpapirkovskyy) (#2562)
4945cd0 is described below

commit 4945cd0acf89d286abbe326191ce352d3ae08516
Author: Myroslav Papirkovskyi <mpapirkovs...@apache.org>
AuthorDate: Thu Nov 1 18:34:51 2018 +0200

    AMBARI-24845. Sometimes host status still in heartbeat lost after agent 
become heartbeating. (mpapirkovskyy) (#2562)
---
 .../src/main/java/org/apache/ambari/server/state/host/HostImpl.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java 
b/ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java
index b9db130..2bb22fd 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java
@@ -360,6 +360,8 @@ public class HostImpl implements Host {
 
       host.topologyManager.onHostRegistered(host, associatedWithCluster);
 
+      host.setHealthStatus(new HostHealthStatus(HealthStatus.HEALTHY,
+          host.getHealthStatus().getHealthReport()));
       // initialize agent times in the last time to prevent setting 
registering/heartbeat times for failed registration.
       host.updateHostTimestamps(e);
     }

Reply via email to