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

jinyleechina pushed a commit to branch 2.0.8-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/2.0.8-prepare by this push:
     new d31f961e3e [Fix-13247] [Master] Kill yarn job failed due to NPE 
exception (#13291)
d31f961e3e is described below

commit d31f961e3ef179f26da092704ff5093927b91852
Author: Molin Wang <[email protected]>
AuthorDate: Thu Dec 29 17:02:19 2022 +0800

    [Fix-13247] [Master] Kill yarn job failed due to NPE exception (#13291)
---
 .../dolphinscheduler/server/master/registry/MasterRegistryClient.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java
 
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java
index e670818f19..906952e709 100644
--- 
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java
+++ 
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java
@@ -483,6 +483,8 @@ public class MasterRegistryClient {
                 .buildTaskInstanceRelatedInfo(taskInstance)
                 .buildProcessInstanceRelatedInfo(processInstance)
                 .create();
+        
taskExecutionContext.setProcessDefineCode(processInstance.getProcessDefinitionCode());
+        
taskExecutionContext.setProcessDefineVersion(processInstance.getProcessDefinitionVersion());
 
         if (masterConfig.getMasterKillYarnJobWhenHandleFailOver()
             && !(taskInstance.isSubProcess()

Reply via email to