rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[ISSUE #8007]fix abnormally recover index file

Open 3424672656 opened this issue 1 year ago • 1 comments

Avoid crashes and retain the last file and switch new file to putkey. Add a linked list correct scan check to prevent endless loops caused by file corruption, when an error is checked, messages before this message will be discarded, and set the preIndexNo of this message to -1

3424672656 avatar Apr 11 '24 17:04 3424672656

Codecov Report

Attention: Patch coverage is 25.00000% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 42.90%. Comparing base (2fdafd2) to head (80ca45d).

Files Patch % Lines
...ava/org/apache/rocketmq/store/index/IndexFile.java 18.18% 6 Missing and 3 partials :warning:
.../org/apache/rocketmq/store/index/IndexService.java 33.33% 4 Missing and 2 partials :warning:
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8018      +/-   ##
=============================================
- Coverage      42.95%   42.90%   -0.05%     
+ Complexity     10384    10379       -5     
=============================================
  Files           1270     1270              
  Lines          88690    88705      +15     
  Branches       11401    11404       +3     
=============================================
- Hits           38097    38063      -34     
- Misses         45899    45940      +41     
- Partials        4694     4702       +8     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar May 15 '24 15:05 codecov-commenter

This PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.

github-actions[bot] avatar May 16 '25 00:05 github-actions[bot]

This PR was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar May 19 '25 00:05 github-actions[bot]