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

        

Reply via email to