Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21758#discussion_r203616384
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/ActiveJob.scala ---
    @@ -60,4 +60,10 @@ private[spark] class ActiveJob(
       val finished = Array.fill[Boolean](numPartitions)(false)
     
       var numFinished = 0
    +
    +  // Mark all the partitions of the stage to be not finished.
    +  def markAllPartitionsAsUnfinished(): Unit = {
    +    (0 until numPartitions).map(finished.update(_, false))
    --- End diff --
    
    is `reset` a better name?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to