[ISSUE #9666] Add accelerated startup recovery feature for RocksDB store with SYNC_FLUSH#9667
Merged
ltamber merged 4 commits intoapache:developfrom Sep 9, 2025
Merged
Conversation
Add accelerated startup recovery functionality when using RocksDB store with SYNC_FLUSH configuration: - Add enableAcceleratedRecovery configuration option in MessageStoreConfig - Implement accelerated recovery logic in CommitLog for both normal and abnormal recovery - Add protective fallback mechanism to handle edge cases - Improve isMappedFileMatchedRecover method for better robustness - Add comprehensive unit tests for the accelerated recovery feature This feature significantly reduces startup time when recovering from RocksDB-based storage with synchronous flushing enabled, while maintaining data consistency and safety.
Remove AcceleratedRecoveryTest.java as the test implementation was not appropriate for the accelerated startup recovery feature.
ltamber
approved these changes
Sep 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Issue(s) This PR Fixes
Fixes #9666
Brief Description
This PR implements an accelerated startup recovery feature that significantly reduces broker startup time when using RocksDB storage with SYNC_FLUSH configuration.
How Did You Test This Change?