[ 
https://issues.apache.org/jira/browse/HDFS-17617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879413#comment-17879413
 ] 

LoggingResearch commented on HDFS-17617:
----------------------------------------

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 Enhancement for HTTPS Address Configuration in JournalNodeHttpServer
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-17617
>                 URL: https://issues.apache.org/jira/browse/HDFS-17617
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 3.3.6
>         Environment: Version: {{`3.3.6`}}
> Location: 
> {{{}`hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNodeHttpServer.java`{}}},
>  in {{`start`}} method. Lines 61-74
>            Reporter: LoggingResearch
>            Priority: Major
>         Attachments: TestJournalNode.java, original-vs-log-enhanced.md
>
>
> This case focuses on adding logging to the {{start}} method of the 
> {{JournalNodeHttpServer}} class to provide better visibility into how the 
> HTTPS address is configured. The original code does not log critical 
> information related to the HTTPS address configuration, which can make 
> troubleshooting difficult, especially in cases where the address is 
> overridden by the bind host or left as a default value.
>  
> *Expected Behavior:* 
> The system should log whether the HTTPS address is being overridden by the 
> bind host or if the default value is being used. Additionally, any 
> misconfigurations or null values should be logged as errors.
>  
> *How-to-Fix:* Enhance the {{start}} method to include logging statements that 
> detail the configuration and any potential issues with the HTTPS address 
> setup.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to