Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 65868 invoked from network); 25 Aug 2009 18:59:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Aug 2009 18:59:56 -0000 Received: (qmail 29816 invoked by uid 500); 25 Aug 2009 19:00:21 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29767 invoked by uid 500); 25 Aug 2009 19:00:21 -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 29757 invoked by uid 99); 25 Aug 2009 19:00:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 19:00:21 +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; Tue, 25 Aug 2009 19:00:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3775234C04C for ; Tue, 25 Aug 2009 11:59:59 -0700 (PDT) Message-ID: <1736461167.1251226799654.JavaMail.jira@brutus> Date: Tue, 25 Aug 2009 11:59:59 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-563) Simplify the codes in FSNamesystem.getBlockLocations(..) In-Reply-To: <909975855.1250895014954.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747572#action_12747572 ] Konstantin Shvachko commented on HDFS-563: ------------------------------------------ This is a very good idea to expose {{namenode}} functionality for tests via a {{Util}} class rather than keeping public methods in the {{NameNode}} itself. Could you please add a JavaDoc comment saying something like "This is a utility class to expose NameNode functionality for unit tests." In order to establish the right precedence it would be better to change parameter FSNamesystem to NameNode in Util.getBlockLocations(). That way we will be able to make getNamesystem() method package private down the road. > Simplify the codes in FSNamesystem.getBlockLocations(..) > -------------------------------------------------------- > > Key: HDFS-563 > URL: https://issues.apache.org/jira/browse/HDFS-563 > Project: Hadoop HDFS > Issue Type: Improvement > Components: name-node > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Priority: Minor > Fix For: 0.21.0 > > Attachments: h563_20090821.patch > > > There are un-used codes in FSNamesystem.getBlockLocations(..). Also, some codes can be moved to tests. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.