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

Improving log message when SequenceFile reader throws EOFException on zero-length file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha, 2.1.0-beta, 2.0.5-alpha
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      sequencefile reader throws EOFException on zero-length file, stacktrace as shown:

      Caused by: java.io.EOFException
      at java.io.DataInputStream.readFully(DataInputStream.java:180)
      at java.io.DataInputStream.readFully(DataInputStream.java:152)
      at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1845)
      at org.apache.hadoop.io.SequenceFile$Reader.initialize(SequenceFile.java:1810)
      at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1759)
      at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1773)
      at org.apache.hadoop.mapred.SequenceFileRecordReader.<init>(SequenceFileRecordReader.java:49)
      at org.apache.hadoop.mapred.SequenceFileInputFormat.getRecordReader(SequenceFileInputFormat.java:64)
      at org.apache.hadoop.hive.ql.io.CombineHiveRecordReader.<init>(CombineHiveRecordReader.java:65)
      ... 16 more

        Attachments

        1. HADOOP-9692.patch
          1 kB
          Chu Tong
        2. HADOOP-9692.patch
          2 kB
          Chu Tong
        3. HADOOP-9692.patch
          2 kB
          Chu Tong
        4. HADOOP-9692.patch
          2 kB
          Chu Tong
        5. HADOOP-9692.patch
          2 kB
          Chu Tong
        6. HADOOP-9692.20151021.patch
          3 kB
          Zhe Zhang

          Activity

            People

            • Assignee:
              zhz Zhe Zhang
              Reporter:
              stayhf Chu Tong
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: