Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25786

If the ByteBuffer.hasArray is false , it will throw UnsupportedOperationException for Kryo

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.3.3, 2.4.1, 3.0.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      `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)

       

        Attachments

          Activity

            People

            • Assignee:
              10110346 liuxian
              Reporter:
              10110346 liuxian
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: