This is an automated email from the ASF dual-hosted git repository. aonishuk 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 0f0bc6b AMBARI-24846. Ambari-agent stop hangs if ambari-server is stopped. (aonishuk) 0f0bc6b is described below commit 0f0bc6b39eda33e3990b1c34a272dbad80f37784 Author: Andrew Onishuk <aonis...@hortonworks.com> AuthorDate: Tue Oct 30 14:43:23 2018 +0200 AMBARI-24846. Ambari-agent stop hangs if ambari-server is stopped. (aonishuk) --- ambari-agent/src/main/python/ambari_agent/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambari-agent/src/main/python/ambari_agent/main.py b/ambari-agent/src/main/python/ambari_agent/main.py index 492f94c..32317d8 100644 --- a/ambari-agent/src/main/python/ambari_agent/main.py +++ b/ambari-agent/src/main/python/ambari_agent/main.py @@ -476,7 +476,7 @@ def main(initializer_module, heartbeat_stop_callback=None): stopped = False # Keep trying to connect to a server or bail out if ambari-agent was stopped - while not connected and not stopped: + while not connected and not stopped and not initializer_module.stop_event.is_set(): for server_hostname in server_hostnames: server_url = config.get_api_url(server_hostname) try: