Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 17604 invoked from network); 11 Jan 2010 20:22:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 20:22:18 -0000 Received: (qmail 52731 invoked by uid 500); 11 Jan 2010 20:22:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 52674 invoked by uid 500); 11 Jan 2010 20:22:17 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 52654 invoked by uid 99); 11 Jan 2010 20:22:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 20:22:17 +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, 11 Jan 2010 20:22:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8AFDC234C4B2 for ; Mon, 11 Jan 2010 12:21:54 -0800 (PST) Message-ID: <1317651663.161071263241314568.JavaMail.jira@brutus.apache.org> Date: Mon, 11 Jan 2010 20:21:54 +0000 (UTC) From: "Zheng Shao (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-879) FileStatus should have the visible length of the file In-Reply-To: <1530576059.105131262894574653.JavaMail.jira@brutus.apache.org> 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/HDFS-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798844#action_12798844 ] Zheng Shao commented on HDFS-879: --------------------------------- A mistake in 2A above. FileStatus should be DFSFileStatus. Also for 2B, talked with Dhruba offline. A better way for this to send the latest length NOT in heartbeat but in a similar manner as the new block creation event. > FileStatus should have the visible length of the file > ----------------------------------------------------- > > Key: HDFS-879 > URL: https://issues.apache.org/jira/browse/HDFS-879 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Zheng Shao > Assignee: Zheng Shao > > Currently, {{FileStatus}} returned by {{DistributedFileSystem.listStatus()}} (which goes through {{DFSClient.listPath()}} then {{NameNode.getListing()}}) does not have the latest file length, if the file is still open for write. > We should make changes in {{DFSClient.listPath()}} to override the length of the file, if the file is under construction. > This depends on adding a {{isUnderConstruction}} field in {{FileStatus}}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.