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

    https://github.com/apache/spark/pull/6310#discussion_r30934873
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -92,24 +102,39 @@ private[spark] class HeartbeatReceiver(sc: 
SparkContext)
       }
     
       override def receive: PartialFunction[Any, Unit] = {
    -    case ExpireDeadHosts =>
    -      expireDeadHosts()
    -    case TaskSchedulerIsSet =>
    -      scheduler = sc.taskScheduler
    +    case ExecutorRegistered(executorId) =>
    +      executorLastSeen(executorId) = clock.getTimeMillis()
    +    case ExecutorRemoved(executorId) =>
    +      executorLastSeen.remove(executorId)
       }
     
       override def receiveAndReply(context: RpcCallContext): 
PartialFunction[Any, Unit] = {
    +    case TaskSchedulerIsSet =>
    +      scheduler = sc.taskScheduler
    +      context.reply(true)
    +    case ExpireDeadHosts =>
    +      expireDeadHosts()
    +      context.reply(true)
    --- End diff --
    
    I moved these here to increase test determinism


---
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