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

   ### Which Issue(s) This PR Fixes
   
   Fixes #10666
   
   ### Brief Description
   
   Persist an invalid CommitLog header at the truncation boundary before
   truncating dirty files.
   
   The marker is forced to disk so stale CommitLog records after the consistent
   offset cannot be recovered after an HA slave restarts.
   
   This change also:
   
   - validates that the truncation offset is a valid CommitLog message boundary;
   - aborts the truncation when the marker cannot be persisted;
   - keeps `ReputMessageService` stopped when truncation fails;
   - adds regression coverage for normal and abnormal restart recovery.
   
   ### How Did You Test This Change?
   
   - `bazel test 
//store:src/test/java/org/apache/rocketmq/store/DefaultMessageStoreTest 
--test_output=errors`
   - `mvn -o -pl store -am test`
   - `mvn -o -pl store -am -DskipTests package`
   


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