Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5307#discussion_r27930881
--- Diff:
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala
---
@@ -296,15 +301,39 @@ final class ShuffleBlockFetcherIterator(
// There is a chance that createInputStream can fail (e.g.
fetching a local file that does
// not exist, SPARK-4085). In that case, we should propagate the
right exception so
// the scheduler gets a FetchFailedException.
- Try(buf.createInputStream()).map { is0 =>
- val is = blockManager.wrapForCompression(blockId, is0)
- val iter =
serializer.newInstance().deserializeStream(is).asIterator
- CompletionIterator[Any, Iterator[Any]](iter, {
- // Once the iterator is exhausted, release the buffer and set
currentResult to null
- // so we don't release it again in cleanup.
- currentResult = null
- buf.release()
- })
+ // is0:InputStream
+ Try(buf.createInputStream()).map {
+ is0 =>
--- End diff --
Move this to previous line and save one indentation level in the rest of
the code.
---
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]