SuccessChanges

Summary

  1. [SPARK-25786][CORE] If the ByteBuffer.hasArray is false , it will throw (commit: de5f489d9c36eeac5708962bb8a8d6e69d80f569) (details)
Commit de5f489d9c36eeac5708962bb8a8d6e69d80f569 by sean.owen
[SPARK-25786][CORE] If the ByteBuffer.hasArray is false , it will throw
UnsupportedOperationException for Kryo
`deserialize` for kryo,  the type of input parameter is ByteBuffer, if
it is not backed by an accessible byte array. it will throw
`UnsupportedOperationException`
Exception Info:
``` java.lang.UnsupportedOperationException was thrown.
java.lang.UnsupportedOperationException
   at java.nio.ByteBuffer.array(ByteBuffer.java:994)
   at
org.apache.spark.serializer.KryoSerializerInstance.deserialize(KryoSerializer.scala:362)
```
Added a unit test
Closes #22779 from 10110346/InputStreamKryo.
Authored-by: liuxian <liu.xian3@zte.com.cn> Signed-off-by: Sean Owen
<sean.owen@databricks.com>
(cherry picked from commit 7f5f7a967d36d78f73d8fa1e178dfdb324d73bf1)
Signed-off-by: Sean Owen <sean.owen@databricks.com>
(commit: de5f489d9c36eeac5708962bb8a8d6e69d80f569)
The file was modifiedcore/src/test/scala/org/apache/spark/serializer/KryoSerializerSuite.scala (diff)
The file was modifiedcore/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala (diff)