tikv / pd

Placement driver for TiKV
Apache License 2.0
1.04k stars 719 forks source link

TestBatchEvict is unstable #8560

Closed HuSharp closed 4 weeks ago

HuSharp commented 1 month ago

Flaky Test

TestBatchEvict

Which jobs are failing

=== RUN   TestBatchEvict
[FAIL]  pkg/schedule/schedulers TestBatchEvict
    evict_leader_test.go:128: 
            Error Trace:    /home/runner/work/pd/pd/pkg/schedule/schedulers/evict_leader_test.go:128
            Error:          "[evict-leader-scheduler {evict leader: from store 1 to one in [2 3], or to 2 (for compatibility)} (kind:leader, region:937(0, 0), createAt:2024-08-22 03:39:20.336444041 +0000 UTC m=+0.420246367, startAt:0001-01-01 00:00:00 +0000 UTC, currentStep:0, size:96, steps:[0:{transfer leader from store 1 to store 2}], timeout:[1m0s]) evict-leader-scheduler {evict leader: from store 1 to one in [2 3], or to 2 (for compatibility)} (kind:leader, region:236(0, 0), createAt:2024-08-22 03:39:20.336976915 +0000 UTC m=+0.420779241, startAt:0001-01-01 00:00:00 +0000 UTC, currentStep:0, size:96, steps:[0:{transfer leader from store 1 to store 2}], timeout:[1m0s])]" should have 3 item(s), but has 2
            Test:           TestBatchEvict
--- FAIL: TestBatchEvict (0.34s)

CI link

https://github.com/tikv/pd/actions/runs/10501395410/job/29091312395?pr=8558

Reason for failure (if possible)

Anything else