Repository navigation
[ISSUE #10863] Persist empty checkpoints without restoring stale backups - #11642
Open
BILLYisavailable wants to merge 2 commits into
Open
BILLYisavailable wants to merge 2 commits into
BILLYisavailable wants to merge 2 commits into
Conversation
This was referenced Nov 27, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #11642 +/- ##
=============================================
+ Coverage 51.33% 51.34% +0.01%
- Complexity 15036 15044 +8
=============================================
Files 1391 1391
Lines 103942 103940 -2
Branches 13643 13643
=============================================
+ Hits 53354 53371 +17
+ Misses 44329 44317 -12
+ Partials 6259 6252 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add common-module tests for empty-primary precedence and missing-primary backup recovery. The existing remoting tests execute common code, but the per-module JaCoCo report does not include that cross-module execution. Validation: both new tests pass with Checkstyle and SpotBugs. A fresh JaCoCo report covers the changed executable line and both branches (100% patch coverage locally). No production or build configuration changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Issue(s) This PR Fixes
Brief Description
Persist an empty checkpoint instead of leaving the previous entries on disk. A valid empty primary must also take precedence over an older backup; use file existence, rather than an empty result, to select the missing-file fallback.
This affects
EpochFileCache: truncating all entries produces an empty in-memory cache, but reopening the cache currently restores the old entries. The added regression reproducesexpected: 0, actual: 3on unchangeddevelopat19352a246.This follows up on the closed, unmerged #10868 and #11032. The existing IOException fallback is retained.
How Did You Test This Change?
CheckpointFileTestcases and 8EpochFileCacheTestcases pass after the fix, including missing-primary, CRC mismatch, and entry-count corruption cases.mvn -pl store -am -Dtest=CheckpointFileTest,EpochFileCacheTest \ -Dsurefire.failIfNoSpecifiedTests=false \ -Djacoco-maven-plugin.version=0.8.12 testTested with JDK 17 and Maven 3.9.11. The command-line JaCoCo override avoids JDK 17 instrumentation errors from the default 0.8.5; the project POM is unchanged.