chuanxo opened a new pull request, #10439: URL: https://github.com/apache/rocketmq/pull/10439
## Summary - `buildTopicConfigSerializeWrapper()` 直接将 `this.topicConfigTable` 引用设入 wrapper,与 `dataVersion` 的 copy 之间存在并发不一致 - 修复:先 copy dataVersion,再用 `new ConcurrentHashMap<>(this.topicConfigTable)` 做浅拷贝,保证 wrapper 是 point-in-time 一致快照 Fixes https://github.com/apache/rocketmq/issues/10438 ## Test plan - [x] 新增 `testSerializeWrapperIsSnapshot` 验证 wrapper 持有独立 snapshot,后续写入不可见 - [x] 全量 `TopicConfigManagerTest` 13 个用例通过 - [x] checkstyle 0 violations 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
