gaoyf opened a new pull request, #10196: URL: https://github.com/apache/rocketmq/pull/10196
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. --> - Fixes #10195 ### Brief Description <!-- Write a brief description for your pull request to help the maintainer understand the reasons behind your changes. --> When enable rocksdb engine,slave can't sync all topics and subscription from master. Because the below logic uses wrong DataVersion: <img width="1633" height="755" alt="image" src="https://github.com/user-attachments/assets/9931af1f-92eb-4253-b483-076e7bda7b29" /> The returned to client's DataVersion is from rocksdb,but TopicConfigManager#subTopicConfigTable use the DataVersion from TopicConfigManager:  The two DataVersion are not equals!So `beginIndex` will be reseted to 0 every time. ### How Did You Test This Change? <!-- In order to ensure the code quality of Apache RocketMQ, we expect every pull request to have undergone thorough testing. --> 1 Use command to check the topic: `./mqadmin rocksDBConfigToJson -p ../data/config -t topics` 2 Watch the slave's log:  -- 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]
