-
Notifications
You must be signed in to change notification settings - Fork 727
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
operator: remove empty JointConsensus steps and fix single voter demote bug #4534
operator: remove empty JointConsensus steps and fix single voter demote bug #4534
Conversation
Signed-off-by: Hua Lu <hua.lu@pingcap.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
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.
The previous lgtm was a misoperation, sorry.
… improve code quality Signed-off-by: Hua Lu <hua.lu@pingcap.com>
Signed-off-by: Hua Lu <hua.lu@pingcap.com>
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.
rest LGTM
Codecov Report
@@ Coverage Diff @@
## master #4534 +/- ##
==========================================
- Coverage 74.86% 74.80% -0.06%
==========================================
Files 265 265
Lines 27856 27838 -18
==========================================
- Hits 20854 20825 -29
- Misses 5133 5143 +10
- Partials 1869 1870 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Hua Lu <hua.lu@pingcap.com>
ref tikv/tikv#11463 |
/merge |
@disksing: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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 ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 7737b61
|
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #4551. |
In response to a cherrypick label: new pull request created: #4552. |
…te bug (#4534) (#4551) * remove empty jc steps and fix single peer demote bug Signed-off-by: Hua Lu <hua.lu@pingcap.com> * remove DemoteFollower from builder, step and operator_controller, and improve code quality Signed-off-by: Hua Lu <hua.lu@pingcap.com> * change leave step condition to cover rare case Signed-off-by: Hua Lu <hua.lu@pingcap.com> * minor changes on comments and logic flow of execChangePeerV2 Signed-off-by: Hua Lu <hua.lu@pingcap.com> * sync code Signed-off-by: HunDunDM <hundundm@gmail.com> Co-authored-by: Hua Lu <hua.lu@pingcap.com> Co-authored-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: Hua Lu hua.lu@pingcap.com
What problem does this PR solve?
Closes: #4362
Closes: #4444
What is changed and how it works?
useJointConsensus
when there is only single non-demote peer changeexecChangePeerV2
to prevent generate empty enter / leave JointConsensus stepsallowDemote
andDemoteFollower
stepCheck List
Tests
Related changes
Release note