You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ar...@apache.org on 2025/06/12 08:11:12 UTC

(ambari) branch trunk updated: AMBARI-26516 : Ambari Agent hung when ambari server sends agent restart action (#4024)

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

arshad 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 b502653280 AMBARI-26516 : Ambari Agent hung when ambari server sends agent restart action (#4024)
b502653280 is described below

commit b502653280b125bdb87a52f4f3f98175396439ff
Author: Vijayakumar Govindasamy <gv...@gmail.com>
AuthorDate: Thu Jun 12 13:41:08 2025 +0530

    AMBARI-26516 : Ambari Agent hung when ambari server sends agent restart action (#4024)
    
    Co-authored-by: vijgovin <vi...@oracle.com>
---
 ambari-agent/src/main/python/ambari_agent/Utils.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ambari-agent/src/main/python/ambari_agent/Utils.py b/ambari-agent/src/main/python/ambari_agent/Utils.py
index 48adbafd80..486cfbc79b 100644
--- a/ambari-agent/src/main/python/ambari_agent/Utils.py
+++ b/ambari-agent/src/main/python/ambari_agent/Utils.py
@@ -162,11 +162,12 @@ class Utils(object):
 
   @staticmethod
   def restartAgent(stop_event, graceful_stop_timeout=30):
-    ExitHelper().exitcode = AGENT_AUTO_RESTART_EXIT_CODE
+    exit_helper = ExitHelper()
+    exit_helper.exitcode = AGENT_AUTO_RESTART_EXIT_CODE
     stop_event.set()
 
     t = threading.Timer(
-      graceful_stop_timeout, ExitHelper().exit, [AGENT_AUTO_RESTART_EXIT_CODE]
+      graceful_stop_timeout, exit_helper.exit
     )
     t.start()
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org