f1amingo opened a new pull request, #11580:
URL: https://github.com/apache/rocketmq/pull/11580

   ### Which Issue(s) This PR Fixes
   
   - Fixes #11579
   
   ### Brief Description
   
   - Persist incremental consumer offsets of the V1 RocksDB manager through a 
deduplicated background batch writer instead of a synchronous write per commit.
   - Drain pending offsets and sync the WAL on `persist()` and `stop()`; 
deleting an offset cancels its pending write.
   - Add `flushWALChecked()` so the offset barrier can detect WAL flush 
failures.
   - Persist all config managers before closing the shared RocksDB on broker 
shutdown.
   
   ### How Did You Test This Change?
   
   - Added `RocksDBConsumerOffsetManagerLmqPersistTest` (32 cases) and 
shared-RocksDB shutdown cases in `BrokerShutdownTest`; both pass together with 
`RocksDBConfigManagerTest`.
   - Component benchmark (1M LMQs, 10k commits/s): process CPU -41%, commit p99 
17.28μs -> 2.14μs, RocksDB write calls -99.3%, all offsets persisted 
consistently.
   


-- 
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]

Reply via email to