[SPARK-24566][CORE] Fix spark.storage.blockManagerSlaveTimeoutMs default config
This PR use spark.network.timeout in place of spark.storage.blockManagerSlaveTimeoutMs when it is not configured, as configuration doc said manual test Author: xueyu <278006819@qq.com> Closes #21575 from xueyumusic/slaveTimeOutConfig.
This commit is contained in:
parent
f6e6899a8b
commit
f71e8da5ef
|
@ -74,10 +74,9 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, clock: Clock)
|
|||
|
||||
// "spark.network.timeout" uses "seconds", while `spark.storage.blockManagerSlaveTimeoutMs` uses
|
||||
// "milliseconds"
|
||||
private val slaveTimeoutMs =
|
||||
sc.conf.getTimeAsMs("spark.storage.blockManagerSlaveTimeoutMs", "120s")
|
||||
private val executorTimeoutMs =
|
||||
sc.conf.getTimeAsSeconds("spark.network.timeout", s"${slaveTimeoutMs}ms") * 1000
|
||||
sc.conf.getTimeAsMs("spark.storage.blockManagerSlaveTimeoutMs",
|
||||
s"${sc.conf.getTimeAsSeconds("spark.network.timeout", "120s")}s")
|
||||
|
||||
// "spark.network.timeoutInterval" uses "seconds", while
|
||||
// "spark.storage.blockManagerTimeoutIntervalMs" uses "milliseconds"
|
||||
|
|
|
@ -634,7 +634,7 @@ private[spark] class MesosCoarseGrainedSchedulerBackend(
|
|||
slave.hostname,
|
||||
externalShufflePort,
|
||||
sc.conf.getTimeAsMs("spark.storage.blockManagerSlaveTimeoutMs",
|
||||
s"${sc.conf.getTimeAsSeconds("spark.network.timeout", "120s") * 1000L}ms"),
|
||||
s"${sc.conf.getTimeAsSeconds("spark.network.timeout", "120s")}s"),
|
||||
sc.conf.getTimeAsMs("spark.executor.heartbeatInterval", "10s"))
|
||||
slave.shuffleRegistered = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue