You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ya...@apache.org on 2023/03/06 12:28:26 UTC
[ambari] branch trunk updated: AMBARI-25882 Fix clusterId NPE error on service operation execution (#3655)
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 <25...@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 <ca...@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-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org