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

    https://github.com/apache/spark/pull/9428#discussion_r44321996
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -258,11 +258,14 @@ abstract class RDD[T: ClassTag](
        * subclasses of RDD.
        */
       final def iterator(split: Partition, context: TaskContext): Iterator[T] 
= {
    -    if (storageLevel != StorageLevel.NONE) {
    +    val iter = if (storageLevel != StorageLevel.NONE) {
           SparkEnv.get.cacheManager.getOrCompute(this, split, context, 
storageLevel)
         } else {
           computeOrReadCheckpoint(split, context)
         }
    +    checkpointData.collect { case data: ReliableRDDCheckpointData[T] =>
    +      data.getCheckpointIterator(this, iter, context, split.index)
    --- End diff --
    
    (deleted comment) actually, this is fine. On second thought I think local 
checkpoint doesn't really have this problem since we set the storage level 
there anyway.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to