Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D652DDEC4 for ; Tue, 18 Sep 2012 03:58:12 +0000 (UTC) Received: (qmail 99106 invoked by uid 500); 18 Sep 2012 03:58:12 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 98212 invoked by uid 500); 18 Sep 2012 03:58:10 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 98057 invoked by uid 99); 18 Sep 2012 03:58:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 03:58:09 +0000 Date: Tue, 18 Sep 2012 14:58:09 +1100 (NCT) From: "thomastechs (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <694343337.90971.1347940689105.JavaMail.jiratomcat@arcas> In-Reply-To: <1420123532.92746.1343075014795.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HADOOP-8615) EOFException in DecompressorStream.java needs to be more verbose MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457584#comment-13457584 ] thomastechs commented on HADOOP-8615: ------------------------------------- Thanks Andy for your valuable comments. I will work on the patch in the trunk too.Also on the test case. The methods having default values were already existing. I used the same methods and overloaded with an added parameter of fileName.This will not affect existing functionalities or the people who already used the existing methods without a fileName.The new methods with fileName , helps the user to use it, if the user faces the issue addressed in this bug. Please let me know your comments. > 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-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