Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 50875 invoked from network); 28 Jun 2009 13:36:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jun 2009 13:36:26 -0000 Received: (qmail 8624 invoked by uid 500); 28 Jun 2009 13:36:36 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 8558 invoked by uid 500); 28 Jun 2009 13:36:36 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 8548 invoked by uid 99); 28 Jun 2009 13:36:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jun 2009 13:36:36 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.220] (HELO mail-fx0-f220.google.com) (209.85.220.220) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jun 2009 13:36:25 +0000 Received: by fxm20 with SMTP id 20so2973030fxm.29 for ; Sun, 28 Jun 2009 06:36:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.60.135 with SMTP id p7mr2580394bkh.83.1246196163782; Sun, 28 Jun 2009 06:36:03 -0700 (PDT) In-Reply-To: <4aa34eb70906271753u58da79e3tf6f48971647044db@mail.gmail.com> References: <7ec9beea0906260920w77d7f873q72ca24f5e0db8ae@mail.gmail.com> <4aa34eb70906271753u58da79e3tf6f48971647044db@mail.gmail.com> Date: Sun, 28 Jun 2009 17:36:03 +0400 Message-ID: <7ec9beea0906280636r366f0be3rda554b2d84b38204@mail.gmail.com> Subject: Re: FileStatus.getLen(): bug in documentation or implememtation? From: Dima Rzhevskiy To: core-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=001636c5b451a9acbd046d68a722 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5b451a9acbd046d68a722 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable I create bug record in https://issues.apache.org/jira/browse/HADOOP-6114 with attached patch for trunk. Dmitry. 2009/6/28 Dhruba Borthakur > From my understanding, getLen() always returned the length of the file in > bytes. > > thank, > dhruba > > > On Fri, Jun 26, 2009 at 9:20 AM, Dima Rzhevskiy > wrote: > > > Hi all > > I try get length of file hadoop(RawFilesysten or hdfs) . > > In javadoc method org.apache.hadoop.fs.FileStatus.getLen() writtend > that > > this method "return the length of this file, in blocks" > > But method return size in bytes. > > > > Is this bug in documentation or implememtation? > > I use hadoop-0.18.3. > > > > > > Dmitry Rzhevskiy. > > > --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F2=D6=C5=D7=D3=CB=C9=CA =E4=CD=C9=D4=D2=C9=CA, www.rzhevskiy.info =D4=C5=CC. +7(926)426-55-55 --001636c5b451a9acbd046d68a722--