Github user ilganeli commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5236#discussion_r28212581
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -62,14 +62,17 @@ private[spark] class HeartbeatReceiver(sc: SparkContext)
     
       // "spark.network.timeout" uses "seconds", while 
`spark.storage.blockManagerSlaveTimeoutMs` uses
       // "milliseconds"
    -  private val executorTimeoutMs = 
sc.conf.getOption("spark.network.timeout").map(_.toLong * 1000).
    -    getOrElse(sc.conf.getLong("spark.storage.blockManagerSlaveTimeoutMs", 
120000))
    -
    +  private val slaveTimeoutMs = 
    +    sc.conf.getTimeAsMs("spark.storage.blockManagerSlaveTimeoutMs", "120s")
    +  private val executorTimeoutMs = 
    +    sc.conf.getTimeAsSec("spark.network.timeout", s"${slaveTimeoutMs}ms") 
* 1000
    +  
       // "spark.network.timeoutInterval" uses "seconds", while
       // "spark.storage.blockManagerTimeoutIntervalMs" uses "milliseconds"
    -  private val checkTimeoutIntervalMs =
    -    sc.conf.getOption("spark.network.timeoutInterval").map(_.toLong * 
1000).
    -      
getOrElse(sc.conf.getLong("spark.storage.blockManagerTimeoutIntervalMs", 60000))
    +  private val timeoutIntervalMs = 
    +    sc.conf.getTimeAsMs("spark.storage.blockManagerTimeoutIntervalMs", 
"60s")
    +  private val checkTimeoutIntervalMs = 
    +    sc.conf.getTimeAsSec("spark.network.timeoutInterval", 
s"${timeoutIntervalMs}ms") * 1000
    --- End diff --
    
    Same - it can't since default unit is s.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to