Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 77045 invoked from network); 8 Jan 2010 23:27:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2010 23:27:15 -0000 Received: (qmail 20671 invoked by uid 500); 8 Jan 2010 23:27:15 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 20605 invoked by uid 500); 8 Jan 2010 23:27:15 -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 20587 invoked by uid 99); 8 Jan 2010 23:27:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 23:27:15 +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; Fri, 08 Jan 2010 23:27:14 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9DFB7234C4BA for ; Fri, 8 Jan 2010 15:26:54 -0800 (PST) Message-ID: <1497337402.132281262993214646.JavaMail.jira@brutus.apache.org> Date: Fri, 8 Jan 2010 23:26:54 +0000 (UTC) From: "Hairong Kuang (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 [ https://issues.apache.org/jira/browse/HDFS-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798247#action_12798247 ] Hairong Kuang commented on HDFS-879: ------------------------------------ > Data Node heartbeat the size. You meant heatbeat the size to NN or the client? Before talking about how we do it, I am not convinced why FileStatus needs to provide visible length & whether it is "under construction"? Isn't it good enough that DFSOutputStream provides those information? > 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.