[
https://issues.apache.org/jira/browse/HADOOP-19264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879486#comment-17879486
]
LoggingResearch commented on HADOOP-19264:
------------------------------------------
To make it clear on how to fix the issue, we upload the comparison between the
original version and the log-enhanced version in the attached file
`original-vs-log-enhanced.md`. The log-enhanced version is generated
automatically utilizing our proposed tool.
> Logging Enhancements for setConf Method in WhitelistBasedResolver
> ------------------------------------------------------------------
>
> Key: HADOOP-19264
> URL: https://issues.apache.org/jira/browse/HADOOP-19264
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Affects Versions: 3.3.6
> Environment: 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.
> Reporter: LoggingResearch
> Priority: Major
> Attachments: TestWhitelistBasedResolver.java,
> original-vs-log-enhanced.md
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]