Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8030

Configuration class can throw exceptions in quiet mode; quiet mode usage unclear

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • conf
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            genman Elias Ross
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: