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

    https://github.com/apache/spark/pull/7770#discussion_r35926082
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -773,16 +773,26 @@ class DAGScheduler(
         stage.pendingTasks.clear()
     
         // First figure out the indexes of partition ids to compute.
    -    val partitionsToCompute: Seq[Int] = {
    +    val (allPartitions: Seq[Int], partitionsToCompute: Seq[Int]) = {
           stage match {
             case stage: ShuffleMapStage =>
    -          (0 until stage.numPartitions).filter(id => 
stage.outputLocs(id).isEmpty)
    +          val allPartitions = 0 until stage.numPartitions
    +          val filteredPartitions = allPartitions.filter(id => 
stage.outputLocs(id).isEmpty)
    +          (allPartitions, filteredPartitions)
             case stage: ResultStage =>
               val job = stage.resultOfJob.get
    -          (0 until job.numPartitions).filter(id => !job.finished(id))
    +          val allPartitions = 0 until job.numPartitions
    +          val filteredPartitions = allPartitions.filter(id => 
!job.finished(id))
    +          (allPartitions, filteredPartitions)
           }
         }
     
    +    // Reset internal accumulators only if this stage is not partially 
submitted
    +    // Otherwise, we may override existing accumulator values from some 
tasks
    --- End diff --
    
    yes, we don't want to clear the values of tasks that have already run (I 
added a test for this in a commit that I'll push soon)


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