apache / apache/rocketmq-dashboard
[studio][Bug] Broker 使用主机名时,物理消息 ID 查询返回空结果
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 683
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 62
Description
在 `rocketmq-studio@0a596661`、RocketMQ Broker 5.5.1、Java 21 的本地真实环境复现。
1. Broker 使用可解析主机名注册到 NameServer,例如 `repro-hostname-broker:10911`。
2. 正常发送消息,按 Topic 查询可以找到该消息。
3. 使用发送结果中的物理消息 ID(`offsetMsgId`),在消息查询页选择“按 Message ID”查询,结果为 0 条;同一 ID 使用官方 SDK 可以读取。
预期应返回该消息。当前 `BrokerTopologyGuards` 直接比较登记的主机名与物理 ID 内嵌的 IP,误判为集群外地址。普通唯一 `msgId` 查询正常。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading BrokerTopologyGuards and the message-ID query path, then reproduce the issue with RocketMQ Broker 5.5.1 using a resolvable broker hostname and an offsetMsgId. Done means the message-ID query returns the broker message when its registered address is a hostname, while the existing unique msgId query and IP-based behavior remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100