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

PD may repeatedly add learner to a region #5786

Closed
HunDunDM opened this issue Dec 15, 2022 · 3 comments
Closed

PD may repeatedly add learner to a region #5786

HunDunDM opened this issue Dec 15, 2022 · 3 comments

Comments

@HunDunDM
Copy link
Member

Bug Report

What did you do?

  • Start a cluster with 5 tikv(mark as tikv-1, tikv-2, tikv-3, tikv-4, tikv-5)
  • Pause rule-checker curl -X POST -d '{"delay":3000}' "http://{PD_ADDRESS}/pd/api/v1/checker/rule"
  • Find a Region whose Peer is on tikv-1, tikv-2, tikv-3
  • Add Learner to this Region on tikv-4, tikv-5
  • Kill tikv-2, and wait for it to become Down and the Region recognizes pending-peer and down-peer
  • Resume rule-checker curl -X POST -d '{"delay":0}' "http://{PD_ADDRESS}/pd/api/v1/checker/rule"

What did you expect to see?

The other Regions of tikv-2 were migrated away, and the Region also returned to normal.

What did you see instead?

Other Regions return to normal, but this Region cannot return to normal.

What version of PD are you using (pd-server -V)?

v6.4.0

Note

It can be restored manually.

Solving it requires two steps:

  • If the redundant Learner is also Pending or Down, delete it first.
  • If a redundant Learner is available, promote it directly.
@HunDunDM
Copy link
Member Author

Because of #4045 , we need more discussion.

ti-chi-bot added a commit that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Dec 30, 2022
nolouch pushed a commit to nolouch/pd that referenced this issue Dec 30, 2022
ti-chi-bot added a commit that referenced this issue Jan 6, 2023
ti-chi-bot added a commit that referenced this issue Jan 11, 2023
) (#5817)

* This is an automated cherry-pick of #5787

ref #5786

Signed-off-by: ti-chi-bot <[email protected]>

* fix conflicts

Signed-off-by: nolouch <[email protected]>

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: nolouch <[email protected]>
Co-authored-by: 混沌DM <[email protected]>
Co-authored-by: nolouch <[email protected]>
@rleungx
Copy link
Member

rleungx commented Aug 10, 2023

Can we close it now? @nolouch

@nolouch
Copy link
Contributor

nolouch commented Aug 28, 2023

yes. I think this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants