From 09afa75a3d803281fa7f39b5f054a8fcbff1ab04 Mon Sep 17 00:00:00 2001 From: Rick Cheng Date: Thu, 13 Jul 2023 15:40:58 +0800 Subject: [PATCH] [Improvement][Worker] No need to kill remote app when appid is empty (#14534) --- .../dolphinscheduler/plugin/task/api/utils/ProcessUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java index d60c007c36..130159137c 100644 --- a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java +++ b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java @@ -172,6 +172,7 @@ public final class ProcessUtils { } if (CollectionUtils.isEmpty(appIds)) { log.info("The appId is empty"); + return; } ApplicationManager applicationManager = applicationManagerMap.get(ResourceManagerType.YARN); applicationManager.killApplication(new YarnApplicationManagerContext(executePath, tenantCode, appIds));