Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 11087 invoked from network); 4 Mar 2010 22:04:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 22:04:00 -0000 Received: (qmail 60189 invoked by uid 500); 4 Mar 2010 22:03:48 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 60144 invoked by uid 500); 4 Mar 2010 22:03:48 -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 60136 invoked by uid 99); 4 Mar 2010 22:03:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 22:03:48 +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; Thu, 04 Mar 2010 22:03:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 83FF2234C4D8 for ; Thu, 4 Mar 2010 22:03:27 +0000 (UTC) Message-ID: <127857802.81901267740207539.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Mar 2010 22:03:27 +0000 (UTC) From: "Hairong Kuang (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-814) Add an api to get the visible length of a DFSDataInputStream. In-Reply-To: <1349437835.1260300678083.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/HDFS-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hairong Kuang updated HDFS-814: ------------------------------- Attachment: getLength-yahoo-0.20.patch This patch allows a user to get a file's length from DFSOutputStream in 0.20. If a user needs to open a file and fetch its length, it could do it in one RPC with this patch so reducing one getFileStatus call. Different from the same API in 0.20, The return value of getVisibleLength() always the same as the meta info stored in NameNode's memory while the file is opened. > Add an api to get the visible length of a DFSDataInputStream. > ------------------------------------------------------------- > > Key: HDFS-814 > URL: https://issues.apache.org/jira/browse/HDFS-814 > Project: Hadoop HDFS > Issue Type: New Feature > Components: hdfs client > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Fix For: 0.21.0, 0.22.0 > > Attachments: getLength-yahoo-0.20.patch, h814_20091221.patch, h814_20091221_0.21.patch > > > Hflush guarantees that the bytes written before are visible to the new readers. However, there is no way to get the length of the visible bytes. The visible length is useful in some applications like SequenceFile. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.