Skip to content

Fix flaky tests and race conditions #403

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

Merged
merged 9 commits into from
Mar 25, 2022
Merged

Fix flaky tests and race conditions #403

merged 9 commits into from
Mar 25, 2022

Conversation

tylertreat
Copy link
Member

Also resolve some race conditions related to server shutdown which was causing tests to deadlock on occasion.

Fix a race condition in TestPartitionReplicationRequestLoopPreempt which
caused the test to sporadically fail. This was caused by a race between
a NATS subscription getting created and a message getting published.
This is fixed by adding a flush call after subscribing.
Also fix selectGroupCoordinator logic to select based on group
coordinator load.
Clarify the purpose of the anonymous function.
@tylertreat tylertreat merged commit a7002c6 into master Mar 25, 2022
@tylertreat tylertreat deleted the flaky_tests branch March 25, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant