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

EOFException in DecompressorStream.java needs to be more verbose

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.20.2
    • None
    • io
    • This is patch is for trunk.Please do a code review

    Description

      In ./src/core/org/apache/hadoop/io/compress/DecompressorStream.java

      The following exception should at least pass back the file that it encounters this error in relation to:

      protected void getCompressedData() throws IOException {
      checkStream();

      int n = in.read(buffer, 0, buffer.length);
      if (n == -1)

      { throw new EOFException("Unexpected end of input stream"); }

      This would help greatly to debug bad/corrupt files.

      Attachments

        1. HADOOP-8615-release-0.20.2.patch
          11 kB
          Thomas Sebastian
        2. HADOOP-8615.patch
          23 kB
          Thomas Sebastian
        3. HADOOP-8615-ver2.patch
          23 kB
          Thomas Sebastian
        4. HADOOP-8615-ver3.patch
          23 kB
          Thomas Sebastian

        Activity

          People

            Unassigned Unassigned
            jlord Jeff Lord
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: