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

    https://github.com/apache/spark/pull/17166#discussion_r107776242
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala ---
    @@ -467,7 +474,7 @@ private[spark] class TaskSchedulerImpl 
private[scheduler](
           taskState: TaskState,
           reason: TaskFailedReason): Unit = synchronized {
         taskSetManager.handleFailedTask(tid, taskState, reason)
    -    if (!taskSetManager.isZombie && taskState != TaskState.KILLED) {
    +    if (!taskSetManager.isZombie) {
    --- End diff --
    
    @mridulm It's possible that the makeOffers() call causes a different job's 
tasks to be executed on the given executor.  Fundamentally, the problem is that 
the killed task needs to be re-scheduled on a different executor, and the only 
way to guarantee that the task gets offered new/different executors is to do a 
full reviveOffers() call (which is why the code in question exists in the first 
place).


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