Skip to content

[ISSUE #10017] Validate commitlog offset in recoverAbnormally to prevent processing …#10018

Merged
RongtongJin merged 3 commits intoapache:developfrom
guyinyou:dev_optimize_recoverAbnormally
Jan 20, 2026
Merged

[ISSUE #10017] Validate commitlog offset in recoverAbnormally to prevent processing …#10018
RongtongJin merged 3 commits intoapache:developfrom
guyinyou:dev_optimize_recoverAbnormally

Conversation

@guyinyou
Copy link
Copy Markdown
Contributor

…old file data that passes CRC checks

Change-Id: If4b1881f82d26ce8d374472d73ec9ce3d51ba643

Which Issue(s) This PR Fixes

Fixes #10017

Brief Description

How Did You Test This Change?

guyinyou added 3 commits January 16, 2026 17:26
…old file data that passes CRC checks

Change-Id: If4b1881f82d26ce8d374472d73ec9ce3d51ba643
fix
Change-Id: Idc4bf7ec476cc9b6529619c2aa9afd6a980b819c
Change-Id: Iac9afbb8b3ffb03fa15890decaf502afbfa44cf9
@guyinyou guyinyou force-pushed the dev_optimize_recoverAbnormally branch from 79b5b89 to e909eed Compare January 19, 2026 06:39
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.87%. Comparing base (45fc4e0) to head (e909eed).
⚠️ Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
...main/java/org/apache/rocketmq/store/CommitLog.java 11.11% 7 Missing and 1 partial ⚠️
...ache/rocketmq/store/config/MessageStoreConfig.java 50.00% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10018      +/-   ##
=============================================
- Coverage      48.89%   48.87%   -0.03%     
- Complexity     12811    13321     +510     
=============================================
  Files           1327     1373      +46     
  Lines          96537    99694    +3157     
  Branches       12457    12887     +430     
=============================================
+ Hits           47201    48722    +1521     
- Misses         43582    45041    +1459     
- Partials        5754     5931     +177     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RongtongJin RongtongJin merged commit 36adf12 into apache:develop Jan 20, 2026
21 of 26 checks passed
dingshuangxi888 pushed a commit to dingshuangxi888/rocketmq that referenced this pull request Feb 10, 2026
…o prevent processing … (apache#10018)

* validate commitlog offset in recoverAbnormally to prevent processing old file data that passes CRC checks

Change-Id: If4b1881f82d26ce8d374472d73ec9ce3d51ba643

* fix

Change-Id: Idc4bf7ec476cc9b6529619c2aa9afd6a980b819c

* add checkCommitLogOffsetOnRecover in MessageStoreConfig

Change-Id: Iac9afbb8b3ffb03fa15890decaf502afbfa44cf9

---------

Co-authored-by: guyinyou <guyinyou.gyy@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add commitlog offset validation in recoverAbnormally to handle old file data

3 participants