The GitHub Actions job "Coverage" on rocketmq.git/fix-store-accelerated-recovery-message-index-safe has succeeded. Run started by GitHub user Drifter-yh (triggered by Drifter-yh).
Head commit for run: af94b93fe63fe3fe9c69a6134eacbbb872318f6d / Drifter <[email protected]> [ISSUE #11649] fix(store): skip accelerated recovery when messageIndexSafe is enabled Accelerated recovery positions the commit log reader at the dispatch offset recorded by the dispatch stores. When messageIndexSafe is enabled, index files newer than the index checkpoint are dropped on abnormal load, so the recovery scan selects the commit log file that has to be replayed from its beginning to rebuild the index. That file can be older than the dispatch offset, and positioning the reader at the dispatch offset then throws "newPosition > limit", which makes DefaultMessageStore#load return false and the broker fail to start. When both offsets fall in the same commit log file, recovery starts after the index rebuild point instead and the index is only partially rebuilt, so queries by key miss messages written before the restart. Fall back to replaying the selected commit log file from its beginning when messageIndexSafe is enabled. That is the only safe start position for the index rebuild and restores the recovery behavior that existed before accelerated recovery was enabled for the file-based consume queue. Report URL: https://github.com/apache/rocketmq/actions/runs/46165478070 With regards, GitHub Actions via GitBox
