-
Notifications
You must be signed in to change notification settings - Fork 728
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
test/cluster_test: make TestRegionStatistics more stable #8320
Conversation
Signed-off-by: husharp <jinhao.hu@pingcap.com>
af36a92
to
7728bfe
Compare
@@ -186,7 +186,7 @@ func TestRegionStatistics(t *testing.T) { | |||
re := require.New(t) | |||
ctx, cancel := context.WithCancel(context.Background()) | |||
defer cancel() | |||
tc, err := tests.NewTestCluster(ctx, 2) | |||
tc, err := tests.NewTestCluster(ctx, 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add a new server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this test has only 2 pd's and five ResignLeader times, whenever there is a network or disk problem(ci machine has a high probability) 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
[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:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: Close #8319
What is changed and how does it work?
Check List
Tests
Release note