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

    https://github.com/apache/spark/pull/11105#discussion_r55934654
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/ResultTask.scala 
---
    @@ -66,7 +67,10 @@ private[spark] class ResultTask[T, U](
         _executorDeserializeTime = System.currentTimeMillis() - 
deserializeStartTime
     
         metrics = Some(context.taskMetrics)
    -    func(context, rdd.iterator(partition, context))
    +    val itr = rdd.iterator(partition, context)
    +    val result = func(context, itr)
    +    val computedFullPartition = itr.isEmpty || rdd.storageLevel != 
StorageLevel.NONE
    --- End diff --
    
    So I've done an update so we don't depend on this used to not work with the 
cache + first + count example (but the new way of keeping track of when a 
partition is fully processed works too).


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