Skip to content

HDFS-17629. The IP address is incorrectly displayed in the IPv6 environment.#8419

Open
balodesecurity wants to merge 1 commit intoapache:trunkfrom
balodesecurity:HDFS-17629
Open

HDFS-17629. The IP address is incorrectly displayed in the IPv6 environment.#8419
balodesecurity wants to merge 1 commit intoapache:trunkfrom
balodesecurity:HDFS-17629

Conversation

@balodesecurity
Copy link
Copy Markdown
Contributor

Summary

  • In histogram-hostip.js, open_hostip_list() extracted the host from dn.infoAddr using split(":")[0]. For an IPv6 infoAddr of the form [2001:db8::1]:9864 this yields [2001 instead of the full IPv6 address.
  • Fix mirrors the logic already used in dfshealth.js: split on ]: first; if more than one part the address is IPv6 and we strip the leading [ from part [0]; otherwise fall back to the original IPv4 split(":")[0] path.

Test

  • JavaScript-only change; verified manually that IPv4 (host:port) continues to extract the host, and IPv6 ([addr]:port) now correctly extracts the full address without brackets.

…onment.

In histogram-hostip.js, open_hostip_list() extracted the host from
dn.infoAddr using split(":")[0], which returns only the first
colon-delimited segment.  For an IPv6 infoAddr of the form
[2001:db8::1]:9864 that yields "[2001" instead of the full address.

Fix: mirror the logic already used in dfshealth.js — split on "]:"
first; if the result has more than one part the address is IPv6 and
we strip the leading "[" from part[0]; otherwise fall back to the
original IPv4 split(":")[0] path.
@hadoop-yetus
Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 22s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 jshint 0m 0s jshint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ trunk Compile Tests _
+1 💚 mvninstall 27m 16s trunk passed
+1 💚 shadedclient 45m 47s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 51s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 shadedclient 15m 44s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 0m 20s The patch does not generate ASF License warnings.
64m 19s
Subsystem Report/Notes
Docker ClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8419/1/artifact/out/Dockerfile
GITHUB PR #8419
Optional Tests dupname asflicense shadedclient codespell detsecrets jshint
uname Linux ae5d12af3a91 5.15.0-171-generic #181-Ubuntu SMP Fri Feb 6 22:44:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 59a0110
Max. process+thread count 638 (vs. ulimit of 10000)
modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8419/1/console
versions git=2.43.0 maven=3.9.11
Powered by Apache Yetus 0.14.1 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants