@@ -35,14 +35,14 @@ public boolean preferDirectBufs() {
35
35
return conf .getBoolean ("spark.shuffle.io.preferDirectBufs" , true );
36
36
}
37
37
38
- /** Connect timeout in secs . Default 120 secs. */
38
+ /** Connect timeout in milliseconds . Default 120 secs. */
39
39
public int connectionTimeoutMs () {
40
40
return conf .getInt ("spark.shuffle.io.connectionTimeout" , 120 ) * 1000 ;
41
41
}
42
42
43
43
/** Number of concurrent connections between two nodes for fetching data. **/
44
44
public int numConnectionsPerPeer () {
45
- return conf .getInt ("spark.shuffle.io.numConnectionsPerPeer" , 2 );
45
+ return conf .getInt ("spark.shuffle.io.numConnectionsPerPeer" , 1 );
46
46
}
47
47
48
48
/** Requested maximum length of the queue of incoming connections. Default -1 for no backlog. */
@@ -67,7 +67,7 @@ public int numConnectionsPerPeer() {
67
67
public int sendBuf () { return conf .getInt ("spark.shuffle.io.sendBuffer" , -1 ); }
68
68
69
69
/** 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 ; }
71
71
72
72
/**
73
73
* Max number of times we will try IO exceptions (such as connection timeouts) per request.
@@ -79,7 +79,7 @@ public int numConnectionsPerPeer() {
79
79
* Time (in milliseconds) that we will wait in order to perform a retry after an IOException.
80
80
* Only relevant if maxIORetries > 0.
81
81
*/
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 ; }
83
83
84
84
/**
85
85
* Minimum size of a block that we should start using memory map rather than reading in through
0 commit comments