Skip to content
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
wants to merge 30 commits into
base: enable-placementrule
Choose a base branch
from

Conversation

ZenoTan
Copy link

@ZenoTan ZenoTan commented Oct 10, 2020

Signed-off-by: ZenoTan [email protected]

What problem does this PR solve?

What is changed and how it works?

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

HunDunDM and others added 16 commits September 25, 2020 16:07
* pdctl: add state filter support in store command

Signed-off-by: Zheming Li <[email protected]>
Copy link
Owner

@nolouch nolouch left a 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 {
Copy link
Owner

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.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.