hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Lord (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-8615) EOFException in DecompressorStream.java needs to be more verbose
Date Mon, 23 Jul 2012 20:23:34 GMT
Jeff Lord created HADOOP-8615:

             Summary: EOFException in DecompressorStream.java needs to be more verbose
                 Key: HADOOP-8615
                 URL: https://issues.apache.org/jira/browse/HADOOP-8615
             Project: Hadoop Common
          Issue Type: Bug
          Components: io
    Affects Versions: 0.20.2
            Reporter: Jeff Lord

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 {

    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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message