From common-issues-return-690-apmail-hadoop-common-issues-archive=hadoop.apache.org@hadoop.apache.org Mon Aug 10 16:44:32 2009 Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 96709 invoked from network); 10 Aug 2009 16:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 16:44:32 -0000 Received: (qmail 41014 invoked by uid 500); 10 Aug 2009 16:44:39 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 40982 invoked by uid 500); 10 Aug 2009 16:44:39 -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 40972 invoked by uid 99); 10 Aug 2009 16:44:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:44:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:44:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CACDF234C004 for ; Mon, 10 Aug 2009 09:44:14 -0700 (PDT) Message-ID: <480433999.1249922654816.JavaMail.jira@brutus> Date: Mon, 10 Aug 2009 09:44:14 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6177) FSInputChecker.getPos() would return position greater than the file size In-Reply-To: <1554871263.1249618274995.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741419#action_12741419 ] Hairong Kuang commented on HADOOP-6177: --------------------------------------- Good catch, Hong! +1 The patch looks good. > FSInputChecker.getPos() would return position greater than the file size > ------------------------------------------------------------------------ > > Key: HADOOP-6177 > URL: https://issues.apache.org/jira/browse/HADOOP-6177 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.21.0 > Reporter: Hong Tang > Assignee: Hong Tang > Fix For: 0.21.0 > > Attachments: hadoop-6177-2090806.patch, hadoop-6177-testcase.patch > > > When using a small buffer (< 512 bytes) to read through the whole file, the final file position is 1+ the file size. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.