Skip to content

[hotfix] Fix workflow instance may failover many times due to doesn't check the restart time#11445

Merged
ruanwenjun merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixWorkflowInstanceFailoverTime
Aug 12, 2022
Merged

[hotfix] Fix workflow instance may failover many times due to doesn't check the restart time#11445
ruanwenjun merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixWorkflowInstanceFailoverTime

Conversation

@ruanwenjun
Copy link
Copy Markdown
Member

@ruanwenjun ruanwenjun commented Aug 12, 2022

Purpose of the pull request

If there exist a workflow instance start at 9:00.

and it failover at 10:00, the master is start at 10:00, then the workflow instance may be failover many times.

Since we didn't check the restart time, and the failover workflow instance only change it's restart time

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixWorkflowInstanceFailoverTime branch from a5edb60 to 4b7f0f0 Compare August 12, 2022 04:03
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 12, 2022

Codecov Report

Merging #11445 (4b7f0f0) into dev (e3c6ace) will decrease coverage by 0.01%.
The diff coverage is 14.28%.

@@             Coverage Diff              @@
##                dev   #11445      +/-   ##
============================================
- Coverage     39.55%   39.53%   -0.02%     
- Complexity     4628     4630       +2     
============================================
  Files           980      980              
  Lines         37282    37288       +6     
  Branches       4180     4182       +2     
============================================
- Hits          14747    14742       -5     
- Misses        20987    20996       +9     
- Partials       1548     1550       +2     
Impacted Files Coverage Δ
...r/server/master/service/MasterFailoverService.java 52.71% <14.28%> (-1.76%) ⬇️
...erver/master/processor/queue/TaskEventService.java 69.64% <0.00%> (-10.72%) ⬇️
...r/plugin/task/sqoop/parameter/SqoopParameters.java 55.12% <0.00%> (-1.29%) ⬇️
...e/dolphinscheduler/remote/NettyRemotingClient.java 52.08% <0.00%> (-0.70%) ⬇️
...dolphinscheduler/remote/future/ResponseFuture.java 83.60% <0.00%> (+1.63%) ⬆️
...er/master/dispatch/host/assign/RandomSelector.java 83.33% <0.00%> (+5.55%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

58.8% 58.8% Coverage
0.0% 0.0% Duplication

@ruanwenjun ruanwenjun added this to the 3.0.1 milestone Aug 12, 2022
Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@ruanwenjun ruanwenjun merged commit 0ca3086 into apache:dev Aug 12, 2022
@ruanwenjun ruanwenjun deleted the dev_wenjun_fixWorkflowInstanceFailoverTime branch August 12, 2022 16:05
ruanwenjun added a commit to ruanwenjun/dolphinscheduler that referenced this pull request Aug 13, 2022
caishunfeng pushed a commit to caishunfeng/dolphinscheduler that referenced this pull request Aug 18, 2022
ruanwenjun added a commit to ruanwenjun/dolphinscheduler that referenced this pull request Sep 17, 2022
@caishunfeng caishunfeng added the release cherry-pick Mark this issue/PR had cherry-pick for release version label Sep 17, 2022
caishunfeng pushed a commit that referenced this pull request Sep 17, 2022
xdu-chenrj pushed a commit to xdu-chenrj/dolphinscheduler that referenced this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend release cherry-pick Mark this issue/PR had cherry-pick for release version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants