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

scatter-range-scheduler cannot work well #4497

Closed
lhy1024 opened this issue Dec 24, 2021 · 0 comments · Fixed by #4106
Closed

scatter-range-scheduler cannot work well #4497

lhy1024 opened this issue Dec 24, 2021 · 0 comments · Fixed by #4106
Labels
type/bug The issue is confirmed as a bug.

Comments

@lhy1024
Copy link
Contributor

lhy1024 commented Dec 24, 2021

Bug Report

  1. we expect the tolerance ratio in range cluster should be 2, but it doesn't take effect.

    c.SetTolerantSizeRatio(2)

    tolerantSizeRatio := cluster.GetOpts().GetTolerantSizeRatio()

  2. we expect it can schedule empty region, but it can not and test can not detect

    EmptyRegionApproximateSize = 1

    // empty case
    regions[49].EndKey = []byte("")
    for _, meta := range regions {
    leader := rand.Intn(4) % 3
    regionInfo := core.NewRegionInfo(
    meta,
    meta.Peers[leader],
    core.SetApproximateKeys(96),
    core.SetApproximateSize(96),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
1 participant