You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2023/06/19 15:23:11 UTC
[dolphinscheduler] branch dev updated: [Bug] [Master] Fix complementListDate will throw IndexOutOfBoundsException (#14361)
This is an automated email from the ASF dual-hosted git repository.
wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 5cbe170e43 [Bug] [Master] Fix complementListDate will throw IndexOutOfBoundsException (#14361)
5cbe170e43 is described below
commit 5cbe170e43d682e8a3418c636be16622df7b5a27
Author: kami <kk...@163.com>
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 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<WorkflowSubmitStatus> {
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();