From 5741c758b3521885e4ea11fdcb3c66d275537739 Mon Sep 17 00:00:00 2001 From: wind Date: Fri, 12 Nov 2021 14:19:57 +0800 Subject: [PATCH] [DS-6771][MasterServer] fix failover worker interrupt (#6801) Co-authored-by: caishunfeng <534328519@qq.com> Co-authored-by: Kirs Co-authored-by: OS <29528966+lenboo@users.noreply.github.com> --- .../server/master/registry/MasterRegistryClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 6c47f84910..edd54068eb 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 @@ -309,8 +309,9 @@ public class MasterRegistryClient { taskInstance.setState(ExecutionStatus.NEED_FAULT_TOLERANCE); processService.saveTaskInstance(taskInstance); + if (!processInstanceExecCacheManager.contains(processInstance.getId())) { - return; + continue; } WorkflowExecuteThread workflowExecuteThreadNotify = processInstanceExecCacheManager.getByProcessInstanceId(processInstance.getId()); StateEvent stateEvent = new StateEvent();