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

evict-leader may leave leaders when the cluster has down-peers #4093

Closed
HunDunDM opened this issue Sep 8, 2021 · 2 comments · Fixed by #4096
Closed

evict-leader may leave leaders when the cluster has down-peers #4093

HunDunDM opened this issue Sep 8, 2021 · 2 comments · Fixed by #4096
Labels
severity/moderate type/bug The issue is confirmed as a bug.

Comments

@HunDunDM
Copy link
Member

HunDunDM commented Sep 8, 2021

Bug Report

What did you do?

  • Start a cluster with 3 TiKV (tikv-1, tikv-2, tikv-3)
  • Let the tikv-3 be forced to shutdown, and wait for the PD to think that the TiKV is down
  • Add evict-leader-scheduler for tikv-2

What did you expect to see?

  • All leaders are on tikv-1

What did you see instead?

  • Some Leaders are on tikv-2
  • It will cause TiKV to be blocked from restarting

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

@HunDunDM HunDunDM added the type/bug The issue is confirmed as a bug. label Sep 8, 2021
@HunDunDM HunDunDM changed the title evict-leader may leave leaders when there are many down-peers in the cluster evict-leader may leave leaders when the cluster has down-peers Sep 8, 2021
@mayjiang0203
Copy link

mayjiang0203 commented Sep 8, 2021

/severity Moderate

@HunDunDM
Copy link
Member Author

HunDunDM commented Sep 8, 2021

related #1005

HunDunDM added a commit to ti-chi-bot/pd that referenced this issue Nov 24, 2021
ti-chi-bot added a commit that referenced this issue Nov 24, 2021
HunDunDM added a commit to ti-chi-bot/pd that referenced this issue Dec 1, 2021
HunDunDM added a commit to ti-chi-bot/pd that referenced this issue Dec 1, 2021
ti-chi-bot added a commit that referenced this issue Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants