Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Today ClusterConnectionManager#connectToNode completes its listeners
in the thread context in which the connection completes, which may not
be the correct context if there are multiple concurrent connection
attempts. With this commit we make sure to complete each listener in the
context in which it was passed to the corresponding call to
connectToNode.

Co-authored-by: ievgen.degtiarenko [email protected]

Today `ClusterConnectionManager#connectToNode` completes its listeners
in the thread context in which the connection completes, which may not
be the correct context if there are multiple concurrent connection
attempts. With this commit we make sure to complete each listener in the
context in which it was passed to the corresponding call to
`connectToNode`.

Co-authored-by: ievgen.degtiarenko <[email protected]>
@DaveCTurner DaveCTurner added backport v8.0.0 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jan 26, 2022
@elasticsearchmachine elasticsearchmachine merged commit e065e09 into elastic:8.0 Jan 27, 2022
@DaveCTurner DaveCTurner deleted the 2022-01-26-backport-83035-8.0 branch January 27, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants