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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 2.3.3, 2.4.1, 3.0.0
    • Spark Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: