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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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
        wuzesheng Zesheng Wu added a comment -

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

        Show
        wuzesheng Zesheng Wu added a comment - I have the same confusion, anyone who can explain this?
        Hide
        boky01 Andras Bokor added a comment -

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

        Show
        boky01 Andras Bokor added a comment - I agree. Quiet mode not just hide some logs but works differently.

          People

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

            Dates

            • Created:
              Updated:

              Development