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 7E612FBC9 for ; Tue, 2 Apr 2013 10:27:19 +0000 (UTC) Received: (qmail 31093 invoked by uid 500); 2 Apr 2013 10:27:18 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 30746 invoked by uid 500); 2 Apr 2013 10:27:18 -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 30697 invoked by uid 99); 2 Apr 2013 10:27:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 10:27:16 +0000 Date: Tue, 2 Apr 2013 10:27:16 +0000 (UTC) From: "Zesheng Wu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-8030) Configuration class can throw exceptions in quiet mode; quiet mode usage unclear 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-8030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619677#comment-13619677 ] Zesheng Wu commented on HADOOP-8030: ------------------------------------ I have the same confusion, anyone who can explain this? > Configuration class can throw exceptions in quiet mode; quiet mode usage unclear > -------------------------------------------------------------------------------- > > Key: HADOOP-8030 > URL: https://issues.apache.org/jira/browse/HADOOP-8030 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Reporter: Elias Ross > > hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java > if (doc == null && root == null) { > if (quiet) > return; > throw new RuntimeException(name + " not found"); > } > Unclear why a diagnostic mode would throw an exception, while normally off it would not. > It's also not clear why 'quiet' is being passed around as well. Why not use logging levels and logging configuration and remove 'quiet' mode altogether? -- 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