-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disttask/ddl: fix hang when reverting #50357
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @ywqzzy. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #50357 +/- ##
=================================================
- Coverage 70.0552% 53.6361% -16.4192%
=================================================
Files 1444 1553 +109
Lines 419997 586677 +166680
=================================================
+ Hits 294230 314671 +20441
- Misses 105464 248095 +142631
- Partials 20303 23911 +3608
Flags with carried forward coverage won't be shown. Click here to find out more.
|
if task.State != proto.TaskStateRunning { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we fix the case that disttask is still reverting
, but ddl mark it as rollback done
?
it's ok for reverting task to take slots, as it's transient normally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am working on it
}, | ||
proto.TaskStateFailed: {}, | ||
proto.TaskStateRevertFailed: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove it since we will remove all reverting logic
…g_when_reverting
if we have maybe we can fix the tidb/pkg/ddl/backfilling_dist_executor.go Line 147 in 095227d
|
Just a tmp fix for previous version of tidb, we can fire another pr to remove reverting process completely. |
@ywqzzy: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
close as we have better approch |
What problem does this PR solve?
Issue Number: ref #50307
Problem Summary:
Revert process run forever since we didn't mark failed revert subtask as revert_failed.
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.