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

JavaSerialization can throw java.io.StreamCorruptedException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.17.0, 0.18.0
    • Fix Version/s: 0.17.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      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-v3.patch
          6 kB
          Tom White
        2. hadoop-3565-v2.patch
          6 kB
          Tom White
        3. hadoop-3565.patch
          6 kB
          Tom White

          Issue Links

            Activity

              People

              • Assignee:
                tomwhite Tom White
                Reporter:
                tomwhite Tom White
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: