tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

test/cluster_test: make TestRegionStatistics more stable #8320

Closed HuSharp closed 6 days ago

HuSharp commented 1 week ago

What problem does this PR solve?

Issue Number: Close #8319

What is changed and how does it work?

Because this test has only 2 pd's and five ResignLeader times, whenever there is a network or disk problem will cause the lease to expire, and result in one more leader resigning.
And then there is a high probability of being recognized as frequent campaign times to transfer leader failed

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 6 days ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nolouch, rleungx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tikv/pd/blob/master/OWNERS)~~ [nolouch,rleungx] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 6 days ago

[LGTM Timeline notifier]

Timeline: