Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Master] State event handle error, get a unknown exception, will retry this event with IndexOutOfBoundsException #14360

Closed
3 tasks done
lxorc opened this issue Jun 16, 2023 · 0 comments · Fixed by #14361
Assignees
Labels
3.1.x for 3.1.x version backend bug Something isn't working

Comments

@lxorc
Copy link
Contributor

lxorc commented Jun 16, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

[ERROR] 2023-06-16 11:50:22.653 org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[304] - [WorkflowInstance-239515][TaskInstance-null] - State event handle error, get a unknown exception, will retry this event: WorkflowStateEvent(processInstanceId=239515, taskInstanceId=null, status=WorkflowExecutionStatus{code=6, desc='failure'}, type=PROCESS_STATE_CHANGE, key=null, channel=null, context=null)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
	at java.util.ArrayList.get(ArrayList.java:435)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.processComplementData(WorkflowExecuteRunnable.java:609)
	at org.apache.dolphinscheduler.server.master.event.WorkflowStateEventHandler.handleStateEvent(WorkflowStateEventHandler.java:56)
	at org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.handleEvents(WorkflowExecuteRunnable.java:289)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

version 3.1.4

src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java L608-L610

        if (scheduleDate == null) {
            scheduleDate = complementListDate.get(0); // if complementListDate is null , IndexOutOfBoundsException
        } else if (processInstance.getState().isFinished()) {

What you expected to happen

No error message is sent, and the workflow ends normally.

How to reproduce

complete data.

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.1.x for 3.1.x version backend bug Something isn't working
Projects
None yet
2 participants