[Bug][Dependent][2.0.6-2.0.7] Dependent node logical conflict with task's startTime and scheduleTime
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
https://github.com/apache/dolphinscheduler/blob/2746f6851d90cbdda04b6dc099847454ede09550/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml#L174-L198
Now v2.0.6 and v2.0.7 dependent task changed to use startTime to find the target task directly above.
That changed the rules that how dependent node to find the task, dependent node still use scheduleTime to find, but use task's startTime to match scheduleTime will made some logical conflict, this can lead to some logic bugs, such as:
-
Run process in
complementcommand with a different date,taskInstance.startTimewill never matchscheduleTime. -
Run process in
complementcommand witha passed day, dependent node willalways successif there is a succeed task ata passed daywith anotherscheduleTimewhich depended by dependent node. -
Tasks that need to be performed continuously every day and not sensitive to date delays, when the task blocked until the next days, dependent node will never succeed, also the downstream processes will all need manual set
force success, that's a big problem.
PR:#11677
What you expected to happen
task_instance's date check in dependent task should use the same rule as process_instance.
How to reproduce
blocked a task by preview tasks and started in after days, the dependent task will never succeed. or run complement with future date.
Anything else
No response
Version
2.0.6
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshooting
Any progress about this issue, cause we facing same problem with version 2.0.7, kind of confuse
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.