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

    https://github.com/apache/spark/pull/5236#discussion_r28000695
  
    --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
    @@ -436,14 +436,14 @@ private[spark] class Executor(
        * This thread stops running when the executor is stopped.
        */
       private def startDriverHeartbeater(): Unit = {
    -    val interval = conf.getInt("spark.executor.heartbeatInterval", 10000)
    +    val intervalMs = 
Utils.timeStringAsMs(conf.get("spark.executor.heartbeatInterval", "10s"))
         val thread = new Thread() {
           override def run() {
    -        // Sleep a random interval so the heartbeats don't end up in sync
    -        Thread.sleep(interval + (math.random * interval).asInstanceOf[Int])
    +        // Sleep a random intervalMs so the heartbeats don't end up in sync
    --- End diff --
    
    I don't think the "interval" here was referring to the variable, so could 
you please revert this :)


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to