You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Zesheng Wu (JIRA)" <ji...@apache.org> on 2013/04/02 12:27:16 UTC

[jira] [Commented] (HADOOP-8030) Configuration class can throw exceptions in quiet mode; quiet mode usage unclear

    [ 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