File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
network/common/src/main/java/org/apache/spark/network/client Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments