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

ASF GitHub Bot commented on HDFS-17629:
---------------------------------------

zeekling commented on PR #7078:
URL: https://github.com/apache/hadoop/pull/7078#issuecomment-2436735827

   @ayushtkn  Can you review this pr ? 




> The IP address is incorrectly displayed in the IPv6 environment.
> ----------------------------------------------------------------
>
>                 Key: HDFS-17629
>                 URL: https://issues.apache.org/jira/browse/HDFS-17629
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: zeekling
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2024-09-23-09-22-28-495.png
>
>
>  
> !image-2024-09-23-09-22-28-495.png!
>  
> function open_hostip_list in histogram-hostip.js , here is root  reason
> {code:java}
> if (index > x0 && index <= x1) {
>       ips.push(dn.infoAddr.split(":")[0]);
> } {code}
> need change to:
> {code:java}
> if (index > x0 && index <= x1) {
>        ips.push(dn.infoAddr.split(":")[0]);
>        var idx = dn.infoAddr.lastIndexOf(":"); 
>        var dnIp = dn.infoAddr.substring(0, idx);
>        ips.push(dnIp);   
> }{code}
>  
>  



--
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