forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix testConcurrentConnectsAndDisconnects (elastic#83098)
As mentioned in elastic#77729 each call to `connectToNode` temporarily holds a reference to the connection it just opened, so we must wait for all the `connectToNode` calls to complete before we can assert that the node is no longer connected. However sometimes we run the connection validator in the background, which means the temporary reference lives for longer than the call to `connectToNode`. This commit tracks the lifetime of the temporary reference into the validator. In fact we don't need to track the calls to `connectToNode`, it's enough to wait for every call to the validator to complete. Closes elastic#77728
- Loading branch information
1 parent
706281a
commit af93c9a
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters