Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 11075 invoked from network); 18 Mar 2011 22:04:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 22:04:51 -0000 Received: (qmail 38481 invoked by uid 500); 18 Mar 2011 22:04:51 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 38417 invoked by uid 500); 18 Mar 2011 22:04:51 -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 38408 invoked by uid 99); 18 Mar 2011 22:04:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 22:04:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 22:04:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 83B0A3B08D7 for ; Fri, 18 Mar 2011 22:04:29 +0000 (UTC) Date: Fri, 18 Mar 2011 22:04:29 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1289955059.12930.1300485869536.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1706564286.8356.1300339229569.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HDFS-1763) Replace hard-coded option strings with variables from DFSConfigKeys 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-1763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008651#comment-13008651 ] Tsz Wo (Nicholas), SZE commented on HDFS-1763: ---------------------------------------------- No problem. Good work, Eli! > Replace hard-coded option strings with variables from DFSConfigKeys > ------------------------------------------------------------------- > > Key: HDFS-1763 > URL: https://issues.apache.org/jira/browse/HDFS-1763 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Eli Collins > Assignee: Eli Collins > Priority: Minor > Fix For: 0.23.0 > > Attachments: hdfs-1763-1.patch, hdfs-1763-2.patch > > > There are some places in the code where we use hard-coded strings instead of the equivalent DFSConfigKeys define, and a couple places where the default is defined multiple places (once in DFSConfigKeys and once elsewhere, though both have the same value). This is error-prone, and also a pain in that it prevents eclipse from easily showing you all the places where a particular config option is used. Let's replace all the uses of the hard-coded option strings with uses of the corresponding variables in DFSConfigKeys. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira