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

    https://github.com/apache/spark/pull/6817#discussion_r35285511
  
    --- Diff: 
core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala ---
    @@ -553,12 +562,14 @@ private[spark] class ExecutorAllocationManager(
             }
     
             // If this is the last pending task, mark the scheduler queue as 
empty
    -        stageIdToTaskIndices.getOrElseUpdate(stageId, new 
mutable.HashSet[Int]) += taskIndex
    +        stageIdToTaskIndices
    +          .getOrElseUpdate(stageId, new mutable.HashSet[String]) += 
(taskIndex + "." + attemptId)
             val numTasksScheduled = stageIdToTaskIndices(stageId).size
             val numTasksTotal = stageIdToNumTasks.getOrElse(stageId, -1)
             if (numTasksScheduled == numTasksTotal) {
               // No more pending tasks for this stage
               stageIdToNumTasks -= stageId
    --- End diff --
    
    sorry, I am wrong the line number, actually they are [these 
code](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala#L567-L574)


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