[
https://issues.apache.org/jira/browse/HDFS-17629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021618#comment-18021618
]
ASF GitHub Bot commented on HDFS-17629:
---------------------------------------
github-actions[bot] closed pull request #7078: HDFS-17629.The IP address is
incorrectly displayed in the IPv6 enviro…
URL: https://github.com/apache/hadoop/pull/7078
> 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: [email protected]
For additional commands, e-mail: [email protected]