You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2018/11/24 15:11:00 UTC

[jira] [Resolved] (SPARK-25786) If the ByteBuffer.hasArray is false , it will throw UnsupportedOperationException for Kryo

     [ https://issues.apache.org/jira/browse/SPARK-25786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-25786.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 22779
[https://github.com/apache/spark/pull/22779]

> If the ByteBuffer.hasArray is false , it will throw UnsupportedOperationException for Kryo
> ------------------------------------------------------------------------------------------
>
>                 Key: SPARK-25786
>                 URL: https://issues.apache.org/jira/browse/SPARK-25786
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.0.0
>            Reporter: liuxian
>            Assignee: liuxian
>            Priority: Major
>             Fix For: 3.0.0
>
>
> `{color:#ffc66d}deserialize{color}` 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)
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org