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 1D46FC2B2 for ; Tue, 16 Jul 2013 14:16:51 +0000 (UTC) Received: (qmail 4681 invoked by uid 500); 16 Jul 2013 14:16:50 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 4645 invoked by uid 500); 16 Jul 2013 14:16:50 -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 4632 invoked by uid 99); 16 Jul 2013 14:16:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 14:16:49 +0000 Date: Tue, 16 Jul 2013 14:16:49 +0000 (UTC) From: "Jason Lowe (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9735) Deprecated configuration property can overwrite non-deprecated property 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-9735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709797#comment-13709797 ] Jason Lowe commented on HADOOP-9735: ------------------------------------ Having deprecated properties overwrite non-deprecated properties is intentional -- it's how we support deprecated properties. The converse is also true -- setting a property will also set all the deprecated forms of that property. Essentially the deprecated properties are aliases with warnings attached when used. Failure to set the "true" property when a deprecated property is set will break support of deprecated properties. bq. In the meanwhile, Configuration#getPropertySources may return wrong source information for a deprecated property. This is a known issue, tracked by HADOOP-8967. > Deprecated configuration property can overwrite non-deprecated property > ----------------------------------------------------------------------- > > Key: HADOOP-9735 > URL: https://issues.apache.org/jira/browse/HADOOP-9735 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 3.0.0, 2.1.0-beta > Reporter: Jing Zhao > Assignee: Jing Zhao > Priority: Minor > Attachments: deprecated-conf.test.patch > > > For the current Configuration implementation, if a conf file contains definitions for both a non-deprecated property and its corresponding deprecated property (e.g., fs.defaultFS and fs.default.name), the latter will overwrite the previous one. In the fs.defaultFS example, this may cause client failover not work. It may be better to keep the non-deprecated property's value unchanged. > In the meanwhile, Configuration#getPropertySources may return wrong source information for a deprecated property. E.g., after setting fs.defaultFS, Configuration#getPropertySources("fs.default.name") will return "because fs.defaultFS is deprecated". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira