Skip to content

Commit ad4241a

Browse files
committed
Updated javadoc.
1 parent f33c72b commit ad4241a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

network/common/src/main/java/org/apache/spark/network/client/TransportClientFactory.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,14 @@ public TransportClientFactory(
107107
}
108108

109109
/**
110-
* Create a new {@link TransportClient} connecting to the given remote host / port. This will
111-
* reuse TransportClients if they are still active and are for the same remote address. Prior
112-
* to the creation of a new TransportClient, we will execute all {@link TransportClientBootstrap}s
113-
* that are registered with this factory.
110+
* Create a {@link TransportClient} connecting to the given remote host / port.
111+
*
112+
* We maintains an array of clients (size determined by spark.shuffle.io.numConnectionsPerPeer)
113+
* and randomly picks one to use. If no client was previously created in the randomly selected
114+
* spot, this function creates a new client and places it there.
115+
*
116+
* Prior to the creation of a new TransportClient, we will execute all
117+
* {@link TransportClientBootstrap}s that are registered with this factory.
114118
*
115119
* This blocks until a connection is successfully established and fully bootstrapped.
116120
*

0 commit comments

Comments
 (0)