Skip to content

Only remove active peer on connection failure#79557

Merged
elasticsearchmachine merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-10-20-79550-peerfinder-connection-leak
Oct 20, 2021
Merged

Only remove active peer on connection failure#79557
elasticsearchmachine merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-10-20-79550-peerfinder-connection-leak

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Today if the PeerFinder experiences a connection failure then it
removes the Peer with the corresponding transport address. However the
removed Peer might be a different instance which is actually fine and
holds a connection reference which therefore leaks.

With this commit we only remove ourselves from the tracked set of peers.

Relates #77295
Closes #79550

Today if the `PeerFinder` experiences a connection failure then it
removes the `Peer` with the corresponding transport address. However the
removed `Peer` might be a different instance which is actually fine and
holds a connection reference which therefore leaks.

With this commit we only remove ourselves from the tracked set of peers.

Relates elastic#77295
Closes elastic#79550
@DaveCTurner DaveCTurner added >bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.0.0 v7.16.1 labels Oct 20, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Oct 20, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@DaveCTurner DaveCTurner added auto-backport-and-merge auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 20, 2021
@elasticsearchmachine elasticsearchmachine merged commit b9ca755 into elastic:master Oct 20, 2021
@DaveCTurner DaveCTurner deleted the 2021-10-20-79550-peerfinder-connection-leak branch October 20, 2021 11:02
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

DaveCTurner added a commit that referenced this pull request Oct 20, 2021
Today if the `PeerFinder` experiences a connection failure then it
removes the `Peer` with the corresponding transport address. However the
removed `Peer` might be a different instance which is actually fine and
holds a connection reference which therefore leaks. With this commit we
only remove ourselves from the tracked set of peers. Relates #77295
Closes #79550
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!) >bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed Meta label for distributed team. v7.16.0 v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] CoordinatorTests.testUnresponsiveFollowerDetectedEventually failing

6 participants