Process shows success,when the task of the process is killed in the terminal#2635
Process shows success,when the task of the process is killed in the terminal#2635qiaozhanwei merged 8 commits intoapache:devfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2635 +/- ##
============================================
- Coverage 36.16% 36.12% -0.05%
+ Complexity 2472 2469 -3
============================================
Files 431 431
Lines 19879 19879
Branches 2419 2419
============================================
- Hits 7190 7182 -8
- Misses 12048 12053 +5
- Partials 641 644 +3
Continue to review full report at Codecov.
|
|
please add a detailed description of the problem on the title and content. |
|
we have the situation: |
|
First of all, the status of the task is different from that of the terminal kill through the stop button. Secondly, in order to simulate the situation that tasks are killed by other services in production, the terminal kill |
|
Kudos, SonarCloud Quality Gate passed!
|
重现步骤:
1、有两个工作流AA和BB,BB依赖AA。
2、AA中有test1和test2任务,test2任务依赖test1。
3、BB中有dependent和test3任务,dependent配置AA的test2,test3依赖dependent。
4、现在手工运行AA,(test1任务可以配置shell,shell中运行一个test1.sh文件,该文件中可以写个sleep 60s),在执行worker的终端kill掉该任务(这种情况是手工kill,实际生产中服务器压力大时很有可能被其他服务kill掉)。
5、此时显示工作流AA运行成功,AA中test1任务kill状态,test2任务没有运行。
6、手工运行BB,可以看到BB中dependent和test3任务都运行成功。
正确的场景是AA中test1被kill后,AA应该是失败状态而不是成功状态,BB因dependent失败而失败
Reproduction steps:
I think the correct scenario is that after test1 in AA is killed, AA should be in failure state instead of success state. BB fails due to the DEPENDENCT failure