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 "Andras Bokor (JIRA)" <ji...@apache.org> on 2017/06/16 14:03:00 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=16051937#comment-16051937 ] 

Andras Bokor commented on HADOOP-8030:
--------------------------------------

I agree. Quiet mode not just hide some logs but works differently.

> 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 was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org