@@ -35,14 +35,14 @@ public boolean preferDirectBufs() {
3535 return conf .getBoolean ("spark.shuffle.io.preferDirectBufs" , true );
3636 }
3737
38- /** Connect timeout in secs . Default 120 secs. */
38+ /** Connect timeout in milliseconds . Default 120 secs. */
3939 public int connectionTimeoutMs () {
4040 return conf .getInt ("spark.shuffle.io.connectionTimeout" , 120 ) * 1000 ;
4141 }
4242
4343 /** Number of concurrent connections between two nodes for fetching data. **/
4444 public int numConnectionsPerPeer () {
45- return conf .getInt ("spark.shuffle.io.numConnectionsPerPeer" , 2 );
45+ return conf .getInt ("spark.shuffle.io.numConnectionsPerPeer" , 1 );
4646 }
4747
4848 /** Requested maximum length of the queue of incoming connections. Default -1 for no backlog. */
@@ -67,7 +67,7 @@ public int numConnectionsPerPeer() {
6767 public int sendBuf () { return conf .getInt ("spark.shuffle.io.sendBuffer" , -1 ); }
6868
6969 /** Timeout for a single round trip of SASL token exchange, in milliseconds. */
70- public int saslRTTimeout () { return conf .getInt ("spark.shuffle.sasl.timeout" , 30000 ) ; }
70+ public int saslRTTimeoutMs () { return conf .getInt ("spark.shuffle.sasl.timeout" , 30 ) * 1000 ; }
7171
7272 /**
7373 * Max number of times we will try IO exceptions (such as connection timeouts) per request.
@@ -79,7 +79,7 @@ public int numConnectionsPerPeer() {
7979 * Time (in milliseconds) that we will wait in order to perform a retry after an IOException.
8080 * Only relevant if maxIORetries > 0.
8181 */
82- public int ioRetryWaitTime () { return conf .getInt ("spark.shuffle.io.retryWaitMs " , 5000 ) ; }
82+ public int ioRetryWaitTimeMs () { return conf .getInt ("spark.shuffle.io.retryWait " , 5 ) * 1000 ; }
8383
8484 /**
8585 * Minimum size of a block that we should start using memory map rather than reading in through
0 commit comments