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

Logging Enhancements for setConf Method in WhitelistBasedResolver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.6
    • None
    • common
    • None
    • Hadoop Version: 3.3.6
      Location: `hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/WhitelistBasedResolver.java`, in setConf` method. Lines 99-104.

    Description

      The original implementation does not provide any logging information about the status of the variable whitelist configuration. As a result, it is difficult to determine whether the variable whitelist is enabled or disabled, which file is being used, and the expiry time set for the whitelist. This lack of visibility can lead to confusion during troubleshooting and configuration, as administrators may not be aware if the variable whitelist is correctly configured or if it is using the intended file and settings.
       
      Expected Behavior:
      The system should log detailed information about whether the variable whitelist is enabled, the file being used, and the expiry time. This will assist in debugging and ensure that the configuration is applied as expected.
       
      How-to-Fix:
      We propose exposing the configuration behavior through logging. This includes indicating whether the variable whitelist is enabled, specifying the file in use, and logging the expiry time to provide greater visibility into the configuration process.

      Attachments

        1. TestWhitelistBasedResolver.java
          6 kB
          LoggingResearch
        2. original-vs-log-enhanced.md
          4 kB
          LoggingResearch

        Activity

          People

            Unassigned Unassigned
            loggingresearch LoggingResearch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: