This is an automated email from the ASF dual-hosted git repository. kerwin pushed a commit to branch 3.1.8-prepare in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit a06f5ad7ad1d31b4aa1b735f3493748046e6ff2b Author: kami <[email protected]> AuthorDate: Mon Jun 19 23:23:05 2023 +0800 [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 57a624d8f6..4556767a88 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 @@ -605,6 +605,11 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatue> { 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();
