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 <[email protected]>
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 <[email protected]>
---
 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to