-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Improve control of outgoing connection lifecycles #77295
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
Merged
DaveCTurner
merged 22 commits into
elastic:master
from
DaveCTurner:2021-09-06-releasable-connections
Sep 14, 2021
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
36579d5
Add RefCounted#hasReferences utility
DaveCTurner af67f2d
Add DiscoveryNode#descriptionWithoutAttributes utility
DaveCTurner 5e61b43
Add test demonstrating the join loop
DaveCTurner b695875
Remote connections are special, don't use connectToNode directly
DaveCTurner d80e09c
API change: connectToNode yields a Releasable
DaveCTurner cc07e03
Add ref-counting to Transport.Connection
DaveCTurner b59ef40
Add onRemoved to lifecycle of Transport.Connection
DaveCTurner 3d4c21e
Integrate refcounting into cluster connection manager
DaveCTurner 5f46f81
Fake cluster applier service must still pass connections into NodeCon…
DaveCTurner 098f444
Properly release connections acquired in PeerFinder
DaveCTurner 2879448
Properly release connections acquired during join validation
DaveCTurner f63ace5
Acquire and release reference during joining
DaveCTurner 76c25ae
Rework NodeConnectionsService to use refcounting
DaveCTurner f051776
Assert that connections are not leaked
DaveCTurner 44282fa
Log remotely-closed connections at INFO
DaveCTurner 4811a35
Review suggestions
DaveCTurner c8a6902
Collapse duplicated methods
DaveCTurner 6a7d381
Merge branch 'master' into 2021-09-06-releasable-connections
DaveCTurner 1712241
Merge branch 'master' into 2021-09-06-releasable-connections
DaveCTurner 03df026
Shorter follower check interval
DaveCTurner bbe1683
Maintain reference to request in DeterministicTaskQueue
DaveCTurner fae5a7f
Merge branch 'master' into 2021-09-06-releasable-connections
DaveCTurner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.