[ https://issues.apache.org/jira/browse/HDFS-17629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zeekling updated HDFS-17629: ---------------------------- Description: !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} was: !image-2024-09-23-09-22-28-495.png! function open_hostip_list in histogram-hostip.js > 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 > 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