Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 70807 invoked from network); 1 Dec 2009 23:31:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 23:31:43 -0000 Received: (qmail 56339 invoked by uid 500); 1 Dec 2009 23:31:43 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 56286 invoked by uid 500); 1 Dec 2009 23:31:43 -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 56271 invoked by uid 99); 1 Dec 2009 23:31:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 23:31:43 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 01 Dec 2009 23:31:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AA965234C045 for ; Tue, 1 Dec 2009 15:31:20 -0800 (PST) Message-ID: <2070516736.1259710280684.JavaMail.jira@brutus> Date: Tue, 1 Dec 2009 23:31:20 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6307) Support reading on un-closed SequenceFile In-Reply-To: <1155449625.1255127551381.JavaMail.jira@brutus> 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-6307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-6307: ------------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) I have committed this to 0.21 and above. > Support reading on un-closed SequenceFile > ----------------------------------------- > > Key: HADOOP-6307 > URL: https://issues.apache.org/jira/browse/HADOOP-6307 > Project: Hadoop Common > Issue Type: Improvement > Components: io > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Fix For: 0.21.0, 0.22.0 > > Attachments: c6307_20091124.patch, c6307_20091130.patch, c6307_20091201.patch > > > When a SequenceFile.Reader is constructed, it calls fs.getFileStatus(file).getLen(). However, fs.getFileStatus(file).getLen() does not return the hflushed length for un-closed file since the Namenode does not know the hflushed length. DFSClient have to ask a datanode for the length last block which is being written; see also HDFS-570. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.