-
Notifications
You must be signed in to change notification settings - Fork 721
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
simulator: support change peer v2 #5609
Conversation
[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. |
Codecov ReportBase: 75.66% // Head: 75.77% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5609 +/- ##
==========================================
+ Coverage 75.66% 75.77% +0.10%
==========================================
Files 327 327
Lines 32420 32420
==========================================
+ Hits 24531 24566 +35
+ Misses 5770 5748 -22
+ Partials 2119 2106 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Do we need some manual test?
desc = fmt.Sprintf("merge region %d into %d", regionID, targetRegion.GetId()) | ||
op = &mergeRegion{targetRegion: targetRegion} | ||
case resp.GetSplitRegion() != nil: | ||
// TODO: support split region |
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.
when will we support it?
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.
We need to discuss how to perform for the three different splits.
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.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.
/merge
@nolouch: 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. |
/merge |
@nolouch: 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: ecb7e49
|
Signed-off-by: HunDunDM hundundm@gmail.com
What problem does this PR solve?
Issue Number: Close #5469
What is changed and how does it work?
Refactor
task.go
AddVoter
andPromoteLearner
AddVoter
andAddLearner
PendingPeer
will now be added first, and will be removed after the simulated snap transfer is complete.ChangePeer
in v2 (ChangePeerV2
andlen(Changes) == 1
)DemoteVoter
, and check if the Peer is not the LeaderChangePeerV2
andlen(Changes) > 1
)ChangePeerV2
andlen(Changes) == 0
)TransferLeader
addsVoter
checksTransferLeader
supports the parsing fieldPeers
(used to let TiKV find the optimal Peer by itself)RemovePeer
now always also removes the correspondingDownPeer
andPendingPeer
Check List
Tests
Release note