RockteMQ-AI commented on issue #10690: URL: https://github.com/apache/rocketmq/issues/10690#issuecomment-5115496226
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the current codebase. **Root Cause:** `SimpleChannel.parseSocketAddress()` (line 93) calls `Integer.parseInt(segments[1])` directly without catching `NumberFormatException`. When the address string contains a non-numeric port (e.g. `127.0.0.1:not-a-port`), calling `remoteAddress()` or `localAddress()` throws an unexpected exception instead of returning `null` like the other invalid-address branches. **Impact:** Proxy `SimpleChannel` — any code path that calls `remoteAddress()`/`localAddress()` on a channel with a malformed address will get an unhandled `NumberFormatException`. **Severity:** medium 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]
