From 5cbe170e43d682e8a3418c636be16622df7b5a27 Mon Sep 17 00:00:00 2001 From: kami Date: Mon, 19 Jun 2023 23:23:05 +0800 Subject: [PATCH] [Bug] [Master] Fix complementListDate will throw IndexOutOfBoundsException (#14361) --- .../server/master/runner/WorkflowExecuteRunnable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java index 88a1937b59..83d7fb1ca9 100644 --- a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java +++ b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java @@ -672,6 +672,11 @@ public class WorkflowExecuteRunnable implements Callable { Date scheduleDate = processInstance.getScheduleTime(); if (scheduleDate == null) { + if (CollectionUtils.isEmpty(complementListDate)) { + log.info("complementListDate is empty, process complement end. process id:{}", processInstance.getId()); + + return true; + } scheduleDate = complementListDate.get(0); } else if (processInstance.getState().isFinished()) { endProcess();