You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "kchen-shanghai (via GitHub)" <gi...@apache.org> on 2025/03/08 07:24:56 UTC
[I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
kchen-shanghai opened a new issue, #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
We are working on v3.2.1, and we have DAG like below:
<img width="540" alt="Image" src="https://github.com/user-attachments/assets/046f14b4-cfda-4518-aee1-2fcd7c526fb5" />
The "switch_channel" node switch either to "echo_teriri" or "echo_teriteri" node. But "echo_teriteri" is also the post node of "echo_teriri" node. What matters is that node "echo_teriteri" cannot be triggered as node "switch_channel" is treated as its parent and the depend result is set to failure in WorkflowExecuteRunnable#dependTaskSuccess (which is not).
We can have somthing as a workaround like:
<img width="615" alt="Image" src="https://github.com/user-attachments/assets/2854fd0d-b41f-4d25-9bda-2a5b7ec3cec1" />
But may be it is better to have it fixed in codes?
Thanks a lot for anyone who can help.
### What you expected to happen
Node "echo_teriteri" should be triggered normally.
### How to reproduce
100 percent reproduced in DAG like below:
<img width="540" alt="Image" src="https://github.com/user-attachments/assets/046f14b4-cfda-4518-aee1-2fcd7c526fb5" />
### Anything else
_No response_
### Version
3.2.x
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048#issuecomment-2719659539
A task is executed only if all upstream edges are reachable, in your dag, the switch doesn't want `echo_teriteri` executed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #17048: [Bug] [Master] Post node of switch task cannot be triggered in special case
URL: https://github.com/apache/dolphinscheduler/issues/17048
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048#issuecomment-2720540605
I will fix this in 3.3.0, `echo_teriteri ` should be executed in the first DAG.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048#issuecomment-2720505840
> > A task is executed only if all upstream edges are reachable, in your dag, the switch doesn't want `echo_teriteri` executed.
>
> You're correct that in this DAG, the switch does not want `echo_teriteri` executed.
>
> **However, the key question here is:** Should `switch_channel` be considered an upstream dependency of `echo_teriteri` if the condition for the `echo_teriteri` branch is not met?
>
> If `switch_channel` should indeed be counted as an upstream dependency, then based on the logic that "A task is executed only if all upstream edges are reachable," the second DAG should not execute `echo_teriteri` because `do_nothing` is unreachable. However, **this is not the current system behavior.**
>
> Let’s break it down:
>
> **First DAG:**
>
> 1. `switch_channel` wants `echo_teriri` executed.
> 2. `echo_teriri` wants `echo_teriteri` executed.
> 3. `switch_channel` does not want `echo_teriteri` executed.
> 4. Steps 2 and 3 conflict. Since "A task is executed only if all upstream edges are reachable," `echo_teriteri` is not executed.
>
> **Second DAG:**
>
> 1. `switch_channel` wants `echo_teriri` executed.
> 2. `echo_teriri` wants `echo_teriteri` executed.
> 3. `switch_channel` does not want `do_nothing` executed.
> 4. `do_nothing` is not executed, which should block `echo_teriteri`.
> 5. Steps 2 and 4 conflict. However, **contrary to the stated logic**, `echo_teriteri` is still executed.
>
> This inconsistency is problematic.
>
> **Most importantly:**
>
> * If the system is designed to prevent `echo_teriteri` from executing in the first DAG, the workflow instance should **end normally.**
> * Instead, the instance **ends in FAIL status** despite no failed tasks being present.
> * Restarting the instance leads to a **zombie process** that keeps running indefinitely and cannot be killed.
In the second DAG `do_nothing` will be removed from the execution graph after the switch_channel executed, so it will not affect echo_teriteri. And for the problem, you can test on dev, the whole logic has been refactored, I am not sure if this problem still exist, if exist we should fix this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "kchen-shanghai (via GitHub)" <gi...@apache.org>.
kchen-shanghai commented on issue #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048#issuecomment-2720136324
> A task is executed only if all upstream edges are reachable, in your dag, the switch doesn't want `echo_teriteri` executed.
in this dag the switch doesn't want echo_teriteri executed <- right
BUT, echo_teriteri is the child of echo_teriri, and echo_teriri is executed and then echo_teriteri as echo_teriri should be excuted. Otherwise, according to the logic that "A task is executed only if all upstream edges are reachable", in the second DAG, echo_teriteri should not be executed as do_thing is not reachable.
And the most important is that, if the system is designed not to execute "echo_teriteri" in the first DAG. The workflow instance should end normally, but it ends in FAIL status now. And when you enter this instance, there is not failed task, and restart this instance will end in a zombie process (keep running forever, cannot be killed).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Master] Post node of switch task cannot be triggered in special case [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17048:
URL: https://github.com/apache/dolphinscheduler/issues/17048#issuecomment-2800213616
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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org