Hadoop Common
  1. Hadoop Common
  2. HADOOP-8030

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: conf
    • Labels:
      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?

        Activity

        Hide
        Zesheng Wu added a comment -

        I have the same confusion, anyone who can explain this?

        Show
        Zesheng Wu added a comment - I have the same confusion, anyone who can explain this?

          People

          • Assignee:
            Unassigned
            Reporter:
            Elias Ross
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development