Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 45968 invoked from network); 4 Aug 2006 12:38:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 12:38:52 -0000 Received: (qmail 75210 invoked by uid 500); 4 Aug 2006 12:38:51 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 75188 invoked by uid 500); 4 Aug 2006 12:38:51 -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 75176 invoked by uid 99); 4 Aug 2006 12:38:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 05:38:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 05:38:50 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD8A941000F for ; Fri, 4 Aug 2006 12:36:14 +0000 (GMT) Message-ID: <30591086.1154694974773.JavaMail.jira@brutus> Date: Fri, 4 Aug 2006 05:36:14 -0700 (PDT) From: "Devaraj Das (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-415) DFSNodesStatus() should sort data nodes. In-Reply-To: <11728384.1154482755948.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-415?page=all ] Devaraj Das updated HADOOP-415: ------------------------------- Attachment: refactor_nodestatus.patch Well, that should be okay since the jsp file actually belongs to the dfs package. But in any case, I have attached a new patch with the DatanodeDescriptor changes reverted. > DFSNodesStatus() should sort data nodes. > ---------------------------------------- > > Key: HADOOP-415 > URL: http://issues.apache.org/jira/browse/HADOOP-415 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.4.0 > Reporter: Konstantin Shvachko > Fix For: 0.5.0 > > Attachments: refactor_nodestatus.patch, refactor_nodestatus.patch > > > HADOOP-392 introduced a new TreeMap member (datanodeMapByName) in the name node. > It is used solely for reporting the data nodes in the UI sorted by their names. > I think it is quite inefficient both time and space-wise to support an excessive > data structure just for that. > Suppose the UI will also require sorting by last heartbeat and/or by the available space.... > I think DFSNodesStatus() should just sort the original datanodeMap before returning the list. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira