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

Prevent connection races in testEnsureWeReconnect #56847

Merged
merged 3 commits into from
May 15, 2020

Conversation

Tim-Brooks
Copy link
Contributor

Currently it is possible that a sniff connection round is occurring as
we enter another test loop in testEnsureWeReconnect. The problem is that
once we enter another loop, closing the connection manually can cause
this pre-existing connection round to fail. This round failing can fail
the test. This commit fixes the issue by ensuring that there are no
in-progress connections before entering another loop.

@Tim-Brooks Tim-Brooks added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Network Http and internode communication implementations backport v7.7.1 v7.8.1 labels May 15, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 15, 2020
@Tim-Brooks Tim-Brooks changed the base branch from master to 7.8 May 15, 2020 21:13
@Tim-Brooks Tim-Brooks added v7.8.0 and removed v7.8.1 labels May 15, 2020
@Tim-Brooks Tim-Brooks merged commit bfd29fb into elastic:7.8 May 15, 2020
Tim-Brooks added a commit that referenced this pull request May 15, 2020
Currently it is possible that a sniff connection round is occurring as
we enter another test loop in testEnsureWeReconnect. The problem is that
once we enter another loop, closing the connection manually can cause
this pre-existing connection round to fail. This round failing can fail
the test. This commit fixes the issue by ensuring that there are no
in-progress connections before entering another loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Coordination/Network Http and internode communication implementations Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.7.1 v7.8.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants