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

Learner peers cannot be scheduled using placement settings #31173

Closed
Tracked by #18030
lcwangchao opened this issue Dec 30, 2021 · 2 comments
Closed
Tracked by #18030

Learner peers cannot be scheduled using placement settings #31173

lcwangchao opened this issue Dec 30, 2021 · 2 comments
Labels
affects-5.4 This bug affects 5.4.x versions. feature/developing the related feature is in development severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@lcwangchao
Copy link
Collaborator

lcwangchao commented Dec 30, 2021

When we are creating a table with learner placement settings like:

CREATE TABLE t(a int) LEARNERS=2;

The schedule will hang when scheduling learner peers. It is caused by tikv bug: tikv/tikv#11463 .

Temporary one way to walk around is to make a two phase operation:

  1. Add rules to PD without learner rules and waiting the schedule done.
  2. Add learner rules then.
@lcwangchao lcwangchao changed the title Cannot schedule learner peers Learner peers cannot be scheduled using placement settings Dec 30, 2021
@lcwangchao lcwangchao added the type/bug The issue is confirmed as a bug. label Dec 30, 2021
@xhebox xhebox added the feature/developing the related feature is in development label Dec 30, 2021
@jebter jebter added the affects-5.4 This bug affects 5.4.x versions. label Jan 11, 2022
@lcwangchao
Copy link
Collaborator Author

lcwangchao commented Jan 14, 2022

fixed by tikv/pd#4534

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 This bug affects 5.4.x versions. feature/developing the related feature is in development severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants