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

    https://github.com/apache/spark/pull/4708#discussion_r26618330
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -795,11 +801,12 @@ class DAGScheduler(
     
         // First figure out the indexes of partition ids to compute.
         val partitionsToCompute: Seq[Int] = {
    -      if (stage.isShuffleMap) {
    -        (0 until stage.numPartitions).filter(id => stage.outputLocs(id) == 
Nil)
    -      } else {
    -        val job = stage.resultOfJob.get
    -        (0 until job.numPartitions).filter(id => !job.finished(id))
    +      stage match {
    +        case stage: ShuffleMapStage => (0 until 
stage.numPartitions).filter(id =>
    --- End diff --
    
    Sorry one more small style comment here: newline after "=>" (always do a 
newline unless all case statements for the patch fit on a single line)


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