Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0861C4FB for ; Tue, 5 Jun 2012 19:15:27 +0000 (UTC) Received: (qmail 6836 invoked by uid 500); 5 Jun 2012 19:15:23 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 6682 invoked by uid 500); 5 Jun 2012 19:15:23 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 6399 invoked by uid 99); 5 Jun 2012 19:15:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 19:15:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 645AC14001F for ; Tue, 5 Jun 2012 19:15:23 +0000 (UTC) Date: Tue, 5 Jun 2012 19:15:23 +0000 (UTC) From: "Ahmed Radwan (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <137354778.41006.1338923723414.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1132714310.37628.1338864383339.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (HADOOP-8484) Prevent Configuration getter methods that are passed a default value from throwing RuntimeException 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-8484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ahmed Radwan resolved HADOOP-8484. ---------------------------------- Resolution: Invalid > Prevent Configuration getter methods that are passed a default value from throwing RuntimeException > --------------------------------------------------------------------------------------------------- > > Key: HADOOP-8484 > URL: https://issues.apache.org/jira/browse/HADOOP-8484 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Affects Versions: 2.0.0-alpha > Reporter: Ahmed Radwan > Fix For: 2.0.1-alpha > > > Configuration getter methods that are passed default values can throw RuntimeExceptions if the value provided is invalid (e.g. NumberFormatException). > In many cases such exception results in more serious consequences (failure to sart a service, see for example NodeManager DeletionService). This can be avoided by returning the default value and just printing a warning message. -- 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