Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/11105#discussion_r55448680
--- 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 --
hmmm thats a good point - I'll move detecting computing the full partition
being consumed to be per-RDD.
---
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]