yuluo-yx opened a new pull request, #10868: URL: https://github.com/apache/rocketmq/pull/10868
### Which Issue(s) This PR Fixes - Fixes #10863 ### Brief Description `CheckpointFile.write` now persists an empty list as a valid zero-entry checkpoint instead of retaining old data. `read()` also trusts a valid empty primary and only falls back to the backup when the primary is missing or cannot be read. Regression tests cover clearing a populated checkpoint and recovering from a corrupted primary through the backup. ### How Did You Test This Change? - `mise exec [email protected]+10 -- mvn -pl common -am -DskipITs -Dtest=CheckpointFileTest -Dsurefire.failIfNoSpecifiedTests=false -Dspotbugs.skip=true test` - Result: `BUILD SUCCESS`; 2 tests, 0 failures, 0 errors, 0 skipped. - Scope check: 2 files, 81 changed lines. -- 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]
