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

    https://github.com/apache/spark/pull/639#discussion_r12490622
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/master/Master.scala 
---
    @@ -171,10 +177,13 @@ private[spark] class Master(
           logInfo("I have been elected leader! New state: " + state)
           if (state == RecoveryState.RECOVERING) {
             beginRecovery(storedApps, storedDrivers, storedWorkers)
    -        context.system.scheduler.scheduleOnce(WORKER_TIMEOUT millis) { 
completeRecovery() }
    +        recoverCallable = 
context.system.scheduler.scheduleOnce(WORKER_TIMEOUT millis)
    --- End diff --
    
    There's actually an alternate syntax for just sending a message, I think 
it's something like
    scheduleOnce(WORKER_TIMEOUT millis, self, CompleteRecovery).


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

Reply via email to