yyqdbngt opened a new pull request, #4059: URL: https://github.com/apache/rocketmq-dashboard/pull/4059
## Summary 在 Broker Cluster 拓扑表的 broker 表格新增「启动时间」列,并同步加入 CSV 导出列。 数据链路:RocketMQ 5.5.0 broker 运行态信息(`fetchBrokerRuntimeStats` 返回的 KVTable,由 `StoreStatsService.getRuntimeInfo()` 提供)已包含 `bootTimestamp`(epoch 毫秒)。本 PR: - `BrokerVO` 新增 `startTimestamp` 字段; - `RocketMQClusterProvider.enrichBrokerWithRuntimeInfo` 解析 `bootTimestamp` 并映射; - `ClusterRepositoryImpl.copyBroker` 拷贝该字段; - 前端 `BrokerInfo` 类型与 `BrokerRecord` 增加 startTime,表格渲染用 `formatDateTime`(与页面其他时间格式一致),运行态不可用时显示 `-`。 ## Why 运维排查时 broker 启动时间/重启历史是关键信息;数据源已携带该字段,此前被丢弃。 ## Testing - 本地编译:`cd web && ./node_modules/.bin/tsc -b tsconfig.app.json`(exit 0) - 前端测试:`./node_modules/.bin/vitest run src/pages/studio/__tests__/BrokerCluster.test.tsx` 全绿;新增用例断言启动时间列与渲染值。 - 后端测试:`mvn -B -ntp test -Dtest=RocketMQClusterProviderTest -DfailIfNoTests=false` 全绿;新增用例断言 bootTimestamp → startTimestamp 映射。 -- 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]
