Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 51616 invoked from network); 23 Feb 2006 05:19:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 05:19:30 -0000 Received: (qmail 58267 invoked by uid 500); 23 Feb 2006 05:19:30 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 58248 invoked by uid 500); 23 Feb 2006 05:19:29 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 58239 invoked by uid 99); 23 Feb 2006 05:19:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2006 21:19:29 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4FD88DD for ; Thu, 23 Feb 2006 06:19:08 +0100 (CET) Message-ID: <1741278853.1140671948324.JavaMail.jira@ajax.apache.org> Date: Thu, 23 Feb 2006 06:19:08 +0100 (CET) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Resolved: (HADOOP-42) PositionCache decrements its position for reads at the end of file In-Reply-To: <1756534767.1140224438143.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-42?page=all ] Doug Cutting resolved HADOOP-42: -------------------------------- Fix Version: 0.1 Resolution: Fixed I just committed this. Thanks, Konstantin! > PositionCache decrements its position for reads at the end of file > ------------------------------------------------------------------ > > Key: HADOOP-42 > URL: http://issues.apache.org/jira/browse/HADOOP-42 > Project: Hadoop > Type: Bug > Components: fs > Reporter: Konstantin Shvachko > Fix For: 0.1 > Attachments: Position.patch > > See > int org.apache.hadoop.fs.FSDataInputStream.PositionCache.read(byte[] b, int off, int len) > if in.read() returns -1 (e.g. at the end of file) the position in the cache will be decremented, while it should be retained. > The attached patch would fix it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira