dongjoon-hyun commented on a change in pull request #30899:
URL: https://github.com/apache/spark/pull/30899#discussion_r548242863
##########
File path: core/src/main/scala/org/apache/spark/ContextAwareIterator.scala
##########
@@ -28,10 +29,12 @@ import org.apache.spark.TaskContext
* which crashes the executor.
* Thus, we should use [[ContextAwareIterator]] to stop consuming after the
task ends.
*/
-class ContextAwareIterator[IN](iter: Iterator[IN], context: TaskContext)
extends Iterator[IN] {
+@DeveloperApi
+class ContextAwareIterator[+T](val context: TaskContext, val delegate:
Iterator[T])
Review comment:
Nice! Thank you for revising this consistently with
`InterruptibleIterator`. Now, it looks much better.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]