RockteMQ-AI commented on issue #10830:
URL: https://github.com/apache/rocketmq/issues/10830#issuecomment-5225050248
**Issue Evaluation**
Category: `type/bug` | Status: **Confirmed**
The reported issue has been verified against the current codebase (`develop`
branch).
**Root Cause:** `ControllerConfig.getDLedgerAddress()` (line 227) splits
peer entries on `-` using `x.split("-")` and takes `[0]` as ID and `[1]` as
address. If a peer address contains hyphens (e.g., `node-1-host:port`), the
split produces more than 2 parts and `[1]` returns only a fragment instead of
the full address.
**Impact:** DLedger controller fails to resolve peer addresses when
hostnames contain hyphens, breaking controller cluster communication.
**Severity:** medium
**Affected code:**
`common/src/main/java/org/apache/rocketmq/common/ControllerConfig.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]