Skip to content

Evict leader could be paused after upgrading #9416

@rleungx

Description

@rleungx

Bug Report

What did you do?

Use the version before v8.5.x:

tiup playground v8.1.0 --tiflash 0 --pd 1 --kv 4 --host 10.2.8.101 --tag test

» scheduler add evict-leader-scheduler 1
Success! The scheduler is created.
» scheduler config evict-leader-scheduler
{
  "store-id-ranges": {
    "1": [
      {
        "start-key": "",
        "end-key": ""
      }
    ]
  }
}

Upgrade to v8.5.x:

tiup playground v8.5.2 --tiflash 0 --pd 1 --kv 4 --host 10.2.8.101 --tag test

» scheduler config evict-leader-scheduler
{
  "store-id-ranges": {
    "1": [
      {
        "start-key": "",
        "end-key": ""
      }
    ]
  },
  "batch": 0
}

The batch will be changed to 0, which leads to the evict-leader-scheduler not work.

Workaound:

  1. delete the scheduler and add it again
  2. or pd-ctl scheduler config evict-leader-scheduler set batch 3

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

v8.5.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.5This bug affects the 8.5.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions