Skip to content

Commit

Permalink
AMBARI-25882 Fix clusterId NPE error on service operation execution (#…
Browse files Browse the repository at this point in the history
…3655)

Co-authored-by: xiaoxiao <caixiaoliang@zto.com>
  • Loading branch information
JiaLiangC and xiaoxiao committed Mar 6, 2023
1 parent d26b730 commit d81000f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ private ExecutionCommandWrapper addGenericExecutionCommand(String clusterName, S
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);
Expand Down

0 comments on commit d81000f

Please sign in to comment.