unbridled-41 opened a new issue, #4270: URL: https://github.com/apache/rocketmq-dashboard/issues/4270
## 1. 需求与来源 消息详情面板应显示消息的重投次数(reconsumeTimes)。来源: - 父项目(master 经典版)消息详情弹窗已展示 `ReconsumeTimes`:`frontend-new/src/components/MessageDetailViewDialog.jsx` L120。 - 语义:消息被消费组重投过(reconsumeTimes > 0)意味着至少一次消费失败,是消息排查时最直接的健康信号。 ## 2. Use case 在消息页检查某条消息时,希望直接看到它被重投的次数,以判断消费端是否反复失败。当前 Studio 消息详情弹窗不显示该信息;消息轨迹 Tab 虽有"重试次数"列,但仅对开启轨迹的 Topic 有数据(Apache provider 的轨迹重试次数当前恒为 0),普通消息无任何途径看到重投历史。 ## 3. Importance 后端扫描/查看消息时直接持有 `MessageExt`(rocketmq-common 5.5.0 `getReconsumeTimes()`,字节码亲验),`RocketMQMessageProvider.toRecordVO` 是全部消息查询路径(按 Topic/按 Key/按 msgId/队列浏览)的统一 VO 映射点,补一个字段即全链路生效。数据已在手,仅缺 VO 字段与展示。 ## 4. Expected behavior / acceptance criteria - `MessageRecordVO` 新增 `reconsumeTimes`,由 MessageExt.getReconsumeTimes() 填充(未重投为 0)。 - 消息详情弹窗(消息内容 Tab)在"大小"后新增"重投次数"项;字段缺失(如演示数据)显示 `-` 占位。 - 测试:provider 层断言 toRecordVO 映射 reconsumeTimes;前端详情断言新行渲染。 ## 5. Related PR Fix incoming. -- 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]
