mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-30 18:10:44 +08:00
86e8ed630b
* feat: Add accelerated startup recovery feature 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. * Fix the issue of accelerated startup failure * refactor: Remove problematic unit test Remove AcceleratedRecoveryTest.java as the test implementation was not appropriate for the accelerated startup recovery feature. * Delete useless code