Skip to content

Make TcpTransport#openConnection fully async#36095

Merged
Tim-Brooks merged 12 commits intoelastic:masterfrom
Tim-Brooks:move_async_to_ts
Nov 30, 2018
Merged

Make TcpTransport#openConnection fully async#36095
Tim-Brooks merged 12 commits intoelastic:masterfrom
Tim-Brooks:move_async_to_ts

Conversation

@Tim-Brooks
Copy link
Copy Markdown
Contributor

This is a follow-up to #35144. That commit made the underlying
connection opening process in TcpTransport asynchronous. However the
method still blocked on the process being complete before returning.
This commit moves the blocking to the ConnectionManager level. This is
another step towards the top-level TransportService api being async.

@Tim-Brooks Tim-Brooks added >non-issue :Distributed/Network Http and internode communication implementations v7.0.0 v6.6.0 labels Nov 30, 2018
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@Tim-Brooks
Copy link
Copy Markdown
Contributor Author

Tim-Brooks commented Nov 30, 2018

@DaveCTurner This is another step towards the TransportService api being async.

Copy link
Copy Markdown
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

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

LGTM left one suggestion

* This class represents a pending {@link Connection}. It provides the ability to cancel the pending
* connection and close the underling list of {@link TcpChannel}.
*/
final class PendingConnection {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we can just return a Releasable instead and document it's purpose?

@Tim-Brooks Tim-Brooks merged commit ea7ea51 into elastic:master Nov 30, 2018
Tim-Brooks added a commit to Tim-Brooks/elasticsearch that referenced this pull request Nov 30, 2018
This is a follow-up to elastic#35144. That commit made the underlying
connection opening process in TcpTransport asynchronous. However the
method still blocked on the process being complete before returning.
This commit moves the blocking to the ConnectionManager level. This is
another step towards the top-level TransportService api being async.
Tim-Brooks added a commit that referenced this pull request Nov 30, 2018
This is a follow-up to #35144. That commit made the underlying
connection opening process in TcpTransport asynchronous. However the
method still blocked on the process being complete before returning.
This commit moves the blocking to the ConnectionManager level. This is
another step towards the top-level TransportService api being async.
@Tim-Brooks Tim-Brooks deleted the move_async_to_ts branch December 18, 2019 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >non-issue v6.6.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants