Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3565

JavaSerialization can throw java.io.StreamCorruptedException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.0, 0.18.0
    • 0.17.1
    • None
    • None
    • Incompatible change, Reviewed
    • Change the Java serialization framework, which is not enabled by default, to correctly make the objects independent of the previous objects.

    Description

      When using JavaSerialization I sometimes get:

      Caused by: java.io.StreamCorruptedException: illegal handle value
              at java.io.ObjectInputStream.readHandle(ObjectInputStream.java:1406)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1285)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
              at org.apache.hadoop.io.serializer.JavaSerialization$JavaSerializationDeserializer.deseriali
      ze(JavaSerialization.java:53)
              at org.apache.hadoop.io.serializer.JavaSerialization$JavaSerializationDeserializer.deseriali
      ze(JavaSerialization.java:36)
              at org.apache.hadoop.mapred.Task$ValuesIterator.readNextValue(Task.java:735)
              at org.apache.hadoop.mapred.Task$ValuesIterator.next(Task.java:675)
              ... 4 more
      

      Attachments

        1. hadoop-3565.patch
          6 kB
          Thomas White
        2. hadoop-3565-v2.patch
          6 kB
          Thomas White
        3. hadoop-3565-v3.patch
          6 kB
          Thomas White

        Issue Links

          Activity

            People

              tomwhite Thomas White
              tomwhite Thomas White
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: