[
https://issues.apache.org/jira/browse/HADOOP-8615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482931#comment-13482931
]
Suresh Srinivas commented on HADOOP-8615:
-----------------------------------------
With your patch I get the following compilation error:
{noformat}
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
hadoop-common ---
[INFO] Compiling 322 source files to
/Users/suresh/Documents/workspace/hadoop.committer/hadoop-common-project/hadoop-common/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/suresh/Documents/workspace/hadoop.committer/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodecFactory.java:[32,17]
org.apache.hadoop.io.compress.TestCodecFactory.BaseCodec is not abstract and
does not override abstract method
createInputStream(java.io.InputStream,org.apache.hadoop.io.compress.Decompressor,java.lang.String)
in org.apache.hadoop.io.compress.CompressionCodec
{noformat}
> 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
> Labels: patch
> Attachments: HADOOP-8615.patch, HADOOP-8615-release-0.20.2.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira