smengcl opened a new pull request, #11462: URL: https://github.com/apache/ozone/pull/11462
Generated-by: Claude Code (Opus 5.5) ## What changes were proposed in this pull request? Some code paths still build an endpoint with `host + ":" + port`. With an IPv6 literal this gives an ambiguous value such as `2001:db8::10:9862`, which is rejected or parsed incorrectly. This patch uses `HddsUtils.getHostPortString` (HDDS-15773) in: - `DiskBalancerSubCommandUtil`: datanode RPC address and the address shown in status and report output - `ReconfigureSubCommandUtil`: datanode address list for batch reconfig - `GrpcOMFailoverProxyProvider`: OM gRPC address - `BaseInsightSubCommand`: datanode URL for `ozone insight` DNS and IPv4 output is unchanged. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16831 ## How was this patch tested? Added IPv6 cases to `TestDiskBalancerSubCommandUtil`, `TestBaseInsightSubCommand` and `TestGrpcOmTransport`, and added `TestReconfigureSubCommandUtil`. The new cases fail without the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
