Skip to content
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

tests: Deflake TestEtcdGrpcResolverRoundRobin #15795

Merged
merged 1 commit into from
May 1, 2023

Conversation

jmhbnz
Copy link
Member

@jmhbnz jmhbnz commented Apr 29, 2023

The flake is as a result of the new test case I introduced in #15577. The test case was sending 100 requests using a round robin resolver against two endpoints and expecting roughly half to go to each server, with a 10% total tolerance (so 5% either side of 50).

In the identified flake 61 requests went to first server and 39 to the second so more than the 5% either side threshold.

To try and address that I am going to increase number of requests to 1,000 which should reduce run to run variability by increasing sample size. Additionally I will increase allowed tolerance to 15%.

These two changes in combination are expected to reduce the chance this flake can happen.

Fixes: #15794

Increase request to 1000 to increase sample size/reduce variability and increase tolerance threshold from 10 to 15%.

Signed-off-by: James Blair <mail@jamesblair.net>
@jmhbnz jmhbnz marked this pull request as ready for review April 29, 2023 19:56
@ahrtr ahrtr merged commit b089474 into etcd-io:main May 1, 2023
@jmhbnz jmhbnz deleted the deflake-roundrobin-resolver-test branch July 27, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

integration/clientv3/naming TestEtcdGrpcResolverRoundRobin
4 participants