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

Remove race in ensure remote connection test #72961

Merged
merged 1 commit into from Jun 9, 2021

Conversation

Tim-Brooks
Copy link
Contributor

Currently RemoteClusterConnectionTests#testEnsureConnected uses the same
countdown latch for two ensure connected method calls. This introduces a
race where the test ends before the second ensure connected method
executes. This causes an exception to be thrown and the test to fail.
This commit resolves the issue by adding a second latch.

Fixes #71519.

Currently RemoteClusterConnectionTests#testEnsureConnected uses the same
countdown latch for two ensure connected method calls. This introduces a
race where the test ends before the second ensure connected method
executes. This causes an exception to be thrown and the test to fail.
This commit resolves the issue by adding a second latch.

Fixes elastic#71519.
@Tim-Brooks Tim-Brooks added >test Issues or PRs that are addressing/adding tests :Distributed/Network Http and internode communication implementations v6.8.16 labels May 12, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label May 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@henningandersen henningandersen self-requested a review June 9, 2021 08:54
Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Tim-Brooks Tim-Brooks merged commit c3ea8df into elastic:6.8 Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team >test Issues or PRs that are addressing/adding tests v6.8.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants