Repository: spark
Updated Branches:
  refs/heads/branch-2.2 2f6dece03 -> c68b4c54f


[MINOR][CORE] Using bufferedInputStream for dataDeserializeStream

## What changes were proposed in this pull request?

Small fix. Using bufferedInputStream for dataDeserializeStream.

## How was this patch tested?

Existing UT.

Author: Xianyang Liu <xianyang....@intel.com>

Closes #19735 from ConeyLiu/smallfix.

(cherry picked from commit 176ae4d53e0269cfc2cfa62d3a2991e28f5a9182)
Signed-off-by: Sean Owen <so...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c68b4c54
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c68b4c54
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c68b4c54

Branch: refs/heads/branch-2.2
Commit: c68b4c54fe25ce81f6f5e01eb4c954a7fb0cdd2c
Parents: 2f6dece
Author: Xianyang Liu <xianyang....@intel.com>
Authored: Mon Nov 13 06:19:13 2017 -0600
Committer: Sean Owen <so...@cloudera.com>
Committed: Mon Nov 13 06:19:21 2017 -0600

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/serializer/SerializerManager.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c68b4c54/core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala 
b/core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala
index 311383e..1d4b05c 100644
--- a/core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala
+++ b/core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala
@@ -206,7 +206,7 @@ private[spark] class SerializerManager(
     val autoPick = !blockId.isInstanceOf[StreamBlockId]
     getSerializer(classTag, autoPick)
       .newInstance()
-      .deserializeStream(wrapForCompression(blockId, inputStream))
+      .deserializeStream(wrapForCompression(blockId, stream))
       .asIterator.asInstanceOf[Iterator[T]]
   }
 }


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

Reply via email to