tikv / pd

Placement driver for TiKV
Apache License 2.0
1.05k stars 720 forks source link

The reject-leader property without label-scheduler take affect after add&remove evict-leader-scheduler #5866

Open pcqz opened 1 year ago

pcqz commented 1 year ago

Bug Report

What did you do?

tiup playground v5.4.1 --db 1 --kv 3 --pd 1
pd-ctl -u 127.0.0.1:34775 -i
» store label 1 host kv1
» store label 2 host kv2
» store label 3 host kv3
» config set label-property reject-leader host kv3
» scheduler add evict-leader-scheduler 3
» scheduler remove evict-leader-scheduler
» scheduler show
[
  "balance-region-scheduler",
  "balance-leader-scheduler",
  "balance-hot-region-scheduler"
]

What did you expect to see?

After removing evict-leader-scheduler, the leader_count of store 3 should be balanced.

What did you see instead?

The leader_count of store 3 is still 0 until the reject-leader property is deleted.

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

v5.4.1

lhy1024 commented 1 year ago

it seem to be similar with #5853