-
Notifications
You must be signed in to change notification settings - Fork 2
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
bug fix: check pending learner before promote in rule checker #18
Open
ZenoTan
wants to merge
30
commits into
nolouch:enable-placementrule
Choose a base branch
from
ZenoTan:learn
base: enable-placementrule
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: jyz0309 <[email protected]>
…#3016) Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
* pdctl: add state filter support in store command Signed-off-by: Zheming Li <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Song Gao <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Song Gao <[email protected]>
Signed-off-by: disksing <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: longfangsong <[email protected]>
…s metrics (tikv#3031) Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: MyonKeminta <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
nolouch
reviewed
Oct 10, 2020
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.
Could you add a test?
@@ -34,6 +34,9 @@ func CreateAddPeerOperator(desc string, cluster opt.Cluster, region *core.Region | |||
|
|||
// CreatePromoteLearnerOperator creates an operator that promotes a learner. | |||
func CreatePromoteLearnerOperator(desc string, cluster opt.Cluster, region *core.RegionInfo, peer *metapb.Peer) (*Operator, error) { | |||
if region.GetPendingPeer(peer.GetId()) != nil { |
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.
This check is more reasonable in the builder.
Signed-off-by: Song Gao <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
…#2976) Signed-off-by: Yi Wu <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: Zheming Li <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
Signed-off-by: ZenoTan <[email protected]>
nolouch
pushed a commit
that referenced
this pull request
Dec 30, 2022
server: Add `approixmateKvSize` fro `RegionInfo` to use for TiDB ratelimit
nolouch
pushed a commit
that referenced
this pull request
Feb 24, 2023
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: ZenoTan [email protected]
What problem does this PR solve?
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes