From 9c0439621836b5134b8a7da4e671cb74edc7c31b Mon Sep 17 00:00:00 2001 From: xiaojingXU <68894048+xxjingcd@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:41:51 +0800 Subject: [PATCH] [Bug-5132][server] stop the take immediately if an exception occurs in the taskExecuteThread (#5133) * [DS-5132][fix] stop the take immediately if an exception occurs in the taskExecuteThread - let softkill() method return true when the process is stopped,else return false; --- .../server/worker/task/AbstractCommandExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java index 73f2e700f0..392d279e8e 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java @@ -289,7 +289,7 @@ public abstract class AbstractCommandExecutor { } } - return process.isAlive(); + return !process.isAlive(); } /**