You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug] [dolphinscheduler-master] Master logic task kill operation will never take effect. Although the TaskInstance state is set to KILL, the logic task will actually continue running in memory.
#16895
Open
3 tasks done
tasier opened this issue
Dec 12, 2024
· 0 comments
I had searched in the issues and found no similar issues.
What happened
Although the kill master logic task operation is successful, the TaskInstance state is set to KILL, and there are no exceptions in the KILL operation, the logic task is actually still running and has not been truly killed.
What you expected to happen
Kill the master logic operation is successful and the logic task does not run again at the same time.
How to reproduce
step 1 create a logic task
Create a logic task such as a DEPENDENT task. The task content which is not important can be anything else. Following image is the task definition.
step 2 save and online the workflow definition
Save the workflow definition. After publishing the workflow definition, make the scheduler online. At last, manual start the workflow.
step3 stop the workflow
After the workflow is running, stop the workflow.
step4 logic task is still running
Make a debug breakpoint at method org.apache.dolphinscheduler.server.master.runner.execute.AsyncMasterTaskDelayQueue#pollAsyncTask.
We can see that asyncTaskCheckDelayQueue still contains the stopped task. It will be running forever unless we redeploy the Dolphin-master service.
Search before asking
What happened
Although the kill master logic task operation is successful, the TaskInstance state is set to KILL, and there are no exceptions in the KILL operation, the logic task is actually still running and has not been truly killed.
What you expected to happen
Kill the master logic operation is successful and the logic task does not run again at the same time.
How to reproduce
step 1 create a logic task
step 2 save and online the workflow definition
step3 stop the workflow
step4 logic task is still running
Anything else
No response
Version
3.2.2-release
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: