RockteMQ-AI commented on issue #10834:
URL: https://github.com/apache/rocketmq/issues/10834#issuecomment-5225049966
**Issue Evaluation**
Category: `type/bug` | Status: **Confirmed**
The reported issue has been verified against the current codebase (`develop`
branch).
**Root Cause:** `RemotingHelper.parseHostFromAddress` (line 268) uses
`address.split(":")` which incorrectly splits bracketed IPv6 addresses like
`[2001:db8::1]:10911` into multiple parts. Returns `[2001` instead of
`2001:db8::1`.
**Impact:** HA connection notifications use truncated host for IPv6 brokers,
breaking high-availability failover in IPv6 environments.
**Severity:** medium
**Affected code:**
`remoting/src/main/java/org/apache/rocketmq/remoting/common/RemotingHelper.java`
An automated fix proposal will be generated. Reply `/approve` to proceed
with PR generation.
---
*Automated evaluation by RockteMQ-AI*
--
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]