Browse Source

[Fix-13247] [Master] Kill yarn job failed due to NPE exception (#13291)

2.0.8-release
Molin Wang 2 years ago committed by GitHub
parent
commit
d31f961e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/MasterRegistryClient.java

2
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()

Loading…
Cancel
Save