Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 81003 invoked from network); 13 Nov 2007 01:52:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2007 01:52:12 -0000 Received: (qmail 65382 invoked by uid 500); 13 Nov 2007 01:51:59 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 65351 invoked by uid 500); 13 Nov 2007 01:51:59 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 65342 invoked by uid 99); 13 Nov 2007 01:51:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 17:51:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2007 01:52:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E8249714211 for ; Mon, 12 Nov 2007 17:51:50 -0800 (PST) Message-ID: <21132427.1194918710948.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 17:51:50 -0800 (PST) From: "Christian Kunz (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-713) dfs list operation is too expensive In-Reply-To: <1728001.1163460338439.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Kunz updated HADOOP-713: ---------------------------------- Priority: Blocker (was: Major) Changing to blocker based on conversation with Sameer. > dfs list operation is too expensive > ----------------------------------- > > Key: HADOOP-713 > URL: https://issues.apache.org/jira/browse/HADOOP-713 > Project: Hadoop > Issue Type: Improvement > Components: dfs > Affects Versions: 0.8.0 > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Priority: Blocker > > A list request to dfs returns an array of DFSFileInfo. A DFSFileInfo of a directory contains a field called contentsLen, indicating its size which gets computed at the namenode side by resursively going through its subdirs. At the same time, the whole dfs directory tree is locked. > The list operation is used a lot by DFSClient for listing a directory, getting a file's size and # of replicas, and getting the size of dfs. Only the last operation needs the field contentsLen to be computed. > To reduce its cost, we can add a flag to the list request. ContentsLen is computed If the flag is set. By default, the flag is false. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.