Skip to content

Commit c7d5422

Browse files
committed
Add comments for executorTimeoutMs and checkTimeoutIntervalMs
1 parent ccd5147 commit c7d5422

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
5050
// executor ID -> timestamp of when the last heartbeat from this executor was received
5151
private val executorLastSeen = new mutable.HashMap[String, Long]
5252

53+
// `spark.network.timeout` use `seconds`,
54+
// while `spark.storage.blockManagerSlaveTimeoutMs` use `milliseconds`
5355
private val executorTimeoutMs = sc.conf.getOption("spark.network.timeout").map(_.toLong * 1000).
5456
getOrElse(sc.conf.getLong("spark.storage.blockManagerSlaveTimeoutMs", 120000))
5557

58+
// `spark.network.timeoutInterval` use `seconds`,
59+
// while `spark.storage.blockManagerTimeoutIntervalMs` use `milliseconds`
5660
private val checkTimeoutIntervalMs =
5761
sc.conf.getOption("spark.network.timeoutInterval").map(_.toLong * 1000).
5862
getOrElse(sc.conf.getLong("spark.storage.blockManagerTimeoutIntervalMs", 60000))

0 commit comments

Comments
 (0)