Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B01BB2F2 for ; Wed, 4 Jan 2012 21:20:26 +0000 (UTC) Received: (qmail 79474 invoked by uid 500); 4 Jan 2012 21:20:26 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 79383 invoked by uid 500); 4 Jan 2012 21:20:26 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 79375 invoked by uid 99); 4 Jan 2012 21:20:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 21:20:25 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,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; Wed, 04 Jan 2012 21:20:25 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C598A1389F2 for ; Wed, 4 Jan 2012 21:19:40 +0000 (UTC) Date: Wed, 4 Jan 2012 21:19:40 +0000 (UTC) From: "Robert Joseph Evans (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <135059411.6569.1325711980810.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1400762458.6295.1325708020515.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7956) Remove duplicate definition of default config values 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/HADOOP-7956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179882#comment-13179882 ] Robert Joseph Evans commented on HADOOP-7956: --------------------------------------------- Suresh, deleting the version in the code could cause backwards compatibility issues. CommonConfigurationKeysPublic.java is public not only in the java since but also @InterfaceAudience.Public. > Remove duplicate definition of default config values > ---------------------------------------------------- > > Key: HADOOP-7956 > URL: https://issues.apache.org/jira/browse/HADOOP-7956 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Reporter: Eli Collins > > We define default configuration values in two places: > #1 The default.xml files (eg core-default.xml) > #2 The _DEFAULT defines in *Keys.java > This means the defaults used in the code may or may not be dead code based on whether the config is present in the default xml file. Would be good to define these in one place. Eg: > #1 Just have the defines in the code and figure out how to make those accessible as a loadable resource (eg could generate the default files from the defines in the KeysPublic* files) > #2 Remove one of the definitions entirely (possible to live w/o the default files?) or > #3 Remove the overlap between the code and default files -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira