Browse Source

[Bug] [Master] Fix complementListDate will throw IndexOutOfBoundsException (#14361)

3.2.1-prepare
kami 1 year ago committed by GitHub
parent
commit
5cbe170e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java

5
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();

Loading…
Cancel
Save