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

yaolei 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 d81000f5a5 AMBARI-25882 Fix clusterId NPE error on service operation 
execution (#3655)
d81000f5a5 is described below

commit d81000f5a59fbbc0ebc9b74f86c20b17ffecfd8e
Author: jialiang <2510095...@qq.com>
AuthorDate: Mon Mar 6 20:28:16 2023 +0800

    AMBARI-25882 Fix clusterId NPE error on service operation execution (#3655)
    
    Co-authored-by: xiaoxiao <caixiaoli...@zto.com>
---
 .../src/main/java/org/apache/ambari/server/actionmanager/Stage.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java 
b/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java
index 5b8f5d6bca..fff00a51bb 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java
@@ -357,6 +357,7 @@ public class Stage {
     ExecutionCommand cmd = new ExecutionCommand();
     ExecutionCommandWrapper wrapper = ecwFactory.createFromCommand(cmd);
     hrc.setExecutionCommandWrapper(wrapper);
+    cmd.setClusterId(Long.toString(clusterId));
     cmd.setHostname(hostName);
     cmd.setClusterName(clusterName);
     cmd.setRequestAndStage(requestId, stageId);


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

Reply via email to