Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 22883 invoked from network); 6 Aug 2009 06:49:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 06:49:30 -0000 Received: (qmail 63973 invoked by uid 500); 6 Aug 2009 06:49:37 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 63928 invoked by uid 500); 6 Aug 2009 06:49:37 -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 63914 invoked by uid 99); 6 Aug 2009 06:49:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 06:49:36 +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; Thu, 06 Aug 2009 06:49:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDE6829A0011 for ; Wed, 5 Aug 2009 23:49:14 -0700 (PDT) Message-ID: <1917932216.1249541354828.JavaMail.jira@brutus> Date: Wed, 5 Aug 2009 23:49:14 -0700 (PDT) From: "V.V.Chaitanya Krishna (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6105) Provide a way to automatically handle backward compatibility of deprecated keys 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/HADOOP-6105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] V.V.Chaitanya Krishna updated HADOOP-6105: ------------------------------------------ Attachment: HADOOP-6105.patch Some changes made in the new patch are: - method to check if the key is deprecated. - method to check if the key is previously loaded with the value of the corresponding deprecated key. - method to set value of deprecated key to the new keys ( when deprecated key occurs in xm files). - method to generate appropriate warning message that needs to be logged when deprecated key is being considered. > Provide a way to automatically handle backward compatibility of deprecated keys > ------------------------------------------------------------------------------- > > Key: HADOOP-6105 > URL: https://issues.apache.org/jira/browse/HADOOP-6105 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Reporter: Hemanth Yamijala > Attachments: HADOOP-6105-1.patch, HADOOP-6105.patch, HADOOP-6105.patch > > > There are cases when we have had to deprecate configuration keys. Use cases include, changing the names of variables to better match intent, splitting a single parameter into two - for maps, reduces etc. > In such cases, we typically provide a backwards compatible option for the old keys. The handling of such cases might typically be common enough to actually add support for it in a generic fashion in the Configuration class. Some initial discussion around this started in HADOOP-5919, but since the project split happened in between we decided to open this issue to fix it in common. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.