hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elias Ross (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-8030) Configuration class can throw exceptions in quiet mode; quiet mode usage unclear
Date Tue, 07 Feb 2012 20:18:59 GMT
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message