Skip to content

feat(#5054): per-page CRC32C checksums close the multi-version torn-write recovery gap - #5078

Closed
lvca wants to merge 2 commits into
mainfrom
feat/5054-per-page-checksums
Closed

lvca wants to merge 2 commits into
mainfrom
feat/5054-per-page-checksums

Conversation

@lvca

@lvca lvca commented Jul 7, 2026

Copy link
Copy Markdown
Member

Follow-up to #4926 / #5052 from the 2026-07 audit backlog. Closes #5054.

What does this PR do?

#5054 (implemented, red-first). Async flush coalesces several committed versions into a single physical page write, so a page can go v1(on-disk) -> v2 -> v3 -> v4 with only the v4 flush reaching the platter. If that flush tears, the #5052 equal-version re-apply repairs only v4's delta region: v2/v3 entries are skipped as strictly-older and their byte regions stay silently torn. The version header alone cannot distinguish this page from an intact one.

Every page flush now also maintains an 8-byte slot (page version + CRC32C of the raw page bytes) in a .pcrc sidecar file next to each data file, written BEFORE the page bytes and fsynced under the same force() barrier. During crash recovery a pre-scan collects the per-page maximum retained WAL version, and each WAL-referenced page is verified once: a page whose checksum reveals a torn write gets its FULL retained WAL delta chain replayed in transaction order (the strictly-older skip and the version-gap abort are bypassed for that page only). Correctness rests on the fsync-before-WAL-drop barrier (#4509/#4934): a dropped entry is always durably contained in the on-disk page, so in-order application of every retained entry reconstructs exactly the newest committed state. A guard refuses the repair when the WAL retains no entry at or above the disk version, so a stale checksum (e.g. a sidecar restored from a backup) can never downgrade an intact page.

Red-first evidence (PageChecksumRecoveryTest): three documents in one page updated by three separate transactions (v2/v3/v4, disjoint byte regions) with flushing suspended, kill, version header forged to v4 over the v1 content. Before the fix recovery produced {doc1=A1, doc2=A2, doc3=B3} - the exact #5054 silent corruption; after, the full chain replay restores {B1, B2, B3}. Also covered: the tear with a persisted equal-version slot (CRC mismatch as direct positive evidence), the missing-sidecar migration path, the slot-matches-disk flush contract, and a corrupted sidecar on a cleanly-closed database (verification is recovery-only).

Design decisions (design-first item)

  • Where the checksum lives. A .pcrc sidecar per data file (8 bytes per page at pageNumber * 8), NOT a page-header extension. The header extension was analyzed and rejected: component file versions carry per-component semantics (LocalBucket.purposeForVersion treats v>=1 as EXTERNAL_PROPERTY and maxRecordsInPageForVersion keys the slot table on the same integer), so a cross-cutting "has checksum" gate cannot ride that version without redesigning component versioning across every component type; PAGE_HEADER_SIZE is additionally a static constant compiled into 17+ classes including the just-stabilized commit path, and the WAL/replication deltas carry absolute in-page offsets. The sidecar needs no version gating at all.
  • Algorithm. java.util.zip.CRC32C (hardware-accelerated) over the full raw page bytes exactly as written, version stored alongside so a slot can be matched to the page state it describes.
  • When written. Inside PaginatedComponentFile.write() - every write site (flush thread, sync flush, recovery/replicated writePageWithLock) is covered automatically - BEFORE the page bytes, so a persisted slot always describes the newest attempted write. Cost is on the flush thread, not commit latency. Gated by arcadedb.pageChecksum (default true). A sidecar write/fsync failure is contained as a WARNING: checksums are advisory and must never veto the data file's fsync verdict.
  • When verified. Recovery only (TransactionManager.checkIntegrity passes a RecoveryPageVerifier into applyChanges; the HA/Raft replay callers pass null and are untouched). Read-path verification behind a config flag was deliberately left out to keep the hot read path unchanged; it can be added later (noted below).
  • Mismatch handling. Torn page -> replay the full retained WAL chain in tx order for that page, guarded by the pre-scanned per-page max WAL version (a replay can never end below the version the disk already claims).
  • Migration. None needed, in both directions. Old databases have no sidecar -> verification is skipped and slots fill in as pages flush. FileManager scans the directory by extension whitelist, so old and NEW versions alike ignore .pcrc (downgrade-safe). drop() deletes the sidecar; rename() (LSM compaction temp-suffix removal) carries it along; HA file transfers that omit it only lose verification, never data.

Per-issue verdict

Test evidence

  • PageChecksumRecoveryTest (new, 5 tests): red-first on main for the two torn-write cases ({A1, A2, B3} observed pre-fix), green with the fix.
  • Full engine+database battery (com.arcadedb.engine.** + com.arcadedb.database.**): 624 tests, 0 failures, 0 errors (1 pre-existing skip).
  • LSM compaction/drop suites (LSMTreeIndexCompactionTest, LSMTreeCompactionCorrectnessTest, DropIndexTest, Issue4960LSMReloadCompactionCounterTest): green - exercises the sidecar rename/drop lifecycle.
  • Recovery suites (WalRecoveryCorrectnessTest, WALVersionGapRecoveryTest, Issue4508TornWALRecoveryTest, Issue4510ForceApplyPartialDeltaTest, ACIDTransactionTest): green.
  • Earlier battery rounds surfaced two real issues, both resolved in this PR: the sidecar fsync initially threw ClosedByInterruptException when the main channel's interrupt retry restored the flag first (now interrupt-shielded like the main channel), and the sidecar-creation latency inside the per-page interlock made a latent race in Issue4712ReplicatedWriteLockTest / Issue4510ForceApplyPartialDeltaTest frequent - their fake-interlock/reload setup raced the async flush of their own setup transaction (LocalDatabase.equals is path-based, so the race spans helper database instances). Fixed by draining the flush pipeline after setup (second commit); verified 8/8 green isolated runs.

Conflict-risk notes

  • docs/release-26.7.2.md: expected to conflict with sibling audit PRs (append-style entries); trivial to resolve.
  • TransactionManager.applyChanges: touched by fix(#4926,#4934): torn-write repair on recovery; fsync-gated WAL dele… #5052 recently; this PR builds directly on that code (comment block updated in place). Sibling PRs touching recovery would conflict here.
  • PaginatedComponentFile: new sidecar members and write()/force()/close()/rename()/drop() additions; low conflict risk.

Follow-up candidates (not in scope)

  • Optional checksum verification on normal page reads behind a config flag (default off), and a CHECK DATABASE integration that validates every slot offline.
  • Sparse/vector bulk writers that bypass PaginatedComponentFile.write() leave no slots for their pages (verification simply skips them); wiring them in would extend coverage.

Checklist

  • I have run the build using mvn clean package command (engine module + full engine/database battery)
  • My unit tests cover both failure and success scenarios

lvca added 2 commits July 7, 2026 01:04
…rite recovery gap

Async flush coalesces several committed versions into a single physical page
write, so a page can go v1(on-disk) -> v2 -> v3 -> v4 with only the v4 flush
reaching the platter. If that flush tears (the version-header sector persists,
the data sectors do not), the #4926/#5052 equal-version re-apply repairs only
v4's delta region: the v2/v3 entries are skipped as strictly-older and their
regions stay silently torn. The version header alone cannot tell a torn page
from an intact one.

Design (no data-file format change):
- PaginatedComponentFile.write() now also maintains an 8-byte slot (page
  version int + CRC32C of the raw page bytes int) at pageNumber*8 in a
  '.pcrc' sidecar file, written BEFORE the page bytes so a persisted slot
  always describes the newest attempted write, and fsynced under the same
  force() barrier as the data file. CRC32C is hardware-accelerated
  (java.util.zip.CRC32C) and the work happens on the flush thread, not in the
  commit latency path. Gated by arcadedb.pageChecksum (default true); sidecar
  channels open lazily so the fd count only grows for actively written files.
- A page-header extension was rejected after verification: component file
  versions carry per-component semantics (LocalBucket.purposeForVersion treats
  v>=1 as EXTERNAL_PROPERTY and maxRecordsInPageForVersion keys the slot table
  on the same integer), so a cross-cutting "has checksum" gate cannot ride
  that version without redesigning component versioning across every component
  type; PAGE_HEADER_SIZE is also a static constant compiled into 17+ classes
  including the just-stabilized commit path. The sidecar achieves the same
  detection with a migration story that trivially holds: databases without a
  sidecar (older versions, disabled flag) recover exactly as before, slots
  fill in as pages flush, and no offline migration exists or is needed.
- Recovery (TransactionManager.checkIntegrity) pre-scans the WAL for the
  per-page maximum retained version, then verifies each WAL-referenced page
  once (RecoveryPageVerifier): slot absent -> unverifiable, standard rules;
  slot version > disk version -> the tear kept the OLD header and the standard
  rules provably repair; equal version + CRC match -> verified intact;
  otherwise the page is flagged TORN, but only when the WAL retains an entry
  at the disk version or newer - a stale checksum (e.g. a sidecar restored
  from a backup) can never trigger a replay that would end below the version
  the disk already claims.
- A torn page's FULL retained WAL delta chain is replayed in transaction
  order: the strictly-older skip and the version-gap abort are bypassed for
  that page only, and only during recovery (HA/Raft replay passes a null
  verifier and is untouched). Correctness rests on the fsync-before-WAL-drop
  barrier (#4509/#4934): any entry already dropped from the WAL is durably
  contained in the on-disk page, so in-order application of every retained
  entry over the disk bytes reconstructs exactly the newest committed state.
- Sidecar lifecycle: FileManager scans by extension whitelist, so old and new
  versions alike ignore '.pcrc' (downgrade-safe); drop() deletes it and
  rename() (LSM compaction temp-suffix removal) carries it along; force()
  tolerates a thread interrupt (flag cleared and restored, closed channel
  reopened once) and a sidecar fsync failure is contained as a WARNING - it
  never vetoes the data file's fsync verdict, since a stale slot only degrades
  to a guarded repair replay.

Red-first evidence (PageChecksumRecoveryTest, forged torn write in the
WalRecoveryCorrectnessTest style): three documents in one page updated by
three separate transactions (v2/v3/v4, disjoint byte regions) with flushing
suspended, kill, version header forged to v4 over the v1 content. Before the
fix recovery produced {doc1=A1, doc2=A2, doc3=B3} - the exact #5054 silent
corruption, only the newest coalesced version repaired; after, the full chain
replay restores {B1, B2, B3}. Also covered: the tear with a persisted
equal-version slot (CRC mismatch as direct evidence), the missing-sidecar
migration path, the slot-matches-disk flush contract, and a corrupted sidecar
on a cleanly-closed database (verification is recovery-only).

Verified with the full engine+database battery (624 tests, green) plus the
LSM compaction/drop suites exercising the sidecar rename/drop lifecycle. Two
earlier battery rounds surfaced real issues, both resolved: the sidecar force
initially threw ClosedByInterruptException when the main channel's interrupt
retry restored the flag before the sidecar fsync (now interrupt-shielded and
contained), and the sidecar-creation latency inside the per-page interlock
widened a latent race in Issue4712/Issue4510's test setup (fixed by draining
the async setup flush, see the companion test commit).
…Apply tests

Issue4712ReplicatedWriteLockTest planted a fake per-page interlock entry in
PageManager.pendingFlushPages while the async flush of its own 10-document
setup transaction could still be INSIDE concurrentPageAccess for an equal
PageId (LocalDatabase.equals is path-based, so equality spans the helper's
database instances). When that in-flight flush completed, its finally-remove
deleted the test's fake entry, the applier thread proceeded without ever
blocking and the "must not complete within 500ms" assertion failed.
Issue4510ForceApplyPartialDeltaTest had the sibling race on the read side:
the post-apply reload could be served the stale setup-transaction page from
the flush-queue index (getCachedPageFromMutablePageInQueue) instead of the
just-written disk content.

Both races are latent on main; the per-page checksum sidecar (#5054) made
them frequent by adding the sidecar-file creation to the first flush of the
page, inside the same interlock window the tests race against. Draining the
flush pipeline (waitAllPagesOfDatabaseAreFlushed) after the setup transaction
makes both tests deterministic: verified 8/8 green runs (previously failing
most isolated runs with the sidecar timing) and a full engine+database
battery.
@mergify

mergify Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@codacy-production

codacy-production Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 57 complexity

Metric Results
Complexity 57

View in Codacy

🟢 Coverage 82.05% diff coverage · -7.22% coverage variation

Metric Results
Coverage variation ✅ -7.22% coverage variation
Diff coverage ✅ 82.05% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (fba3902) 135322 100946 74.60%
Head commit (b2a9ed7) 167310 (+31988) 112733 (+11787) 67.38% (-7.22%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5078) 156 128 82.05%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces per-page CRC32C checksums stored in a .pcrc sidecar file to detect and repair torn page writes during crash recovery, resolving issue #5054. The changes span configuration, file management, transaction recovery, and tests. The review feedback highlights two important improvements: first, explicitly closing the checksum sidecar file before dropping it in PaginatedComponentFile.java to prevent file locking issues on Windows; second, downgrading the log level from SEVERE to WARNING in TransactionManager.java when a stale checksum is encountered to prevent false monitoring alerts.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +184 to +193
@Override
public void drop() throws IOException {
super.drop();
// Best-effort removal of the checksum sidecar: an orphan sidecar is harmless (nothing scans for it),
// but deleting it keeps the database directory clean and avoids a stale sidecar being adopted if a
// future file re-uses the exact same name.
final File sidecar = new File(filePath + CHECKSUM_FILE_EXT);
if (sidecar.exists() && !sidecar.delete())
LogManager.instance().log(this, Level.WARNING, "Error on deleting checksum sidecar file '%s'", null, sidecar);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

If drop() is called on an open file, the checksum sidecar file may still be open. On Windows, attempting to delete an open file will fail due to file locking, leading to orphaned .pcrc files or a failed drop operation. Explicitly calling closeChecksumFile() before super.drop() ensures the sidecar is closed and can be safely deleted on all platforms.

  @Override
  public void drop() throws IOException {
    closeChecksumFile();
    super.drop();
    // Best-effort removal of the checksum sidecar: an orphan sidecar is harmless (nothing scans for it),
    // but deleting it keeps the database directory clean and avoids a stale sidecar being adopted if a
    // future file re-uses the exact same name.
    final File sidecar = new File(filePath + CHECKSUM_FILE_EXT);
    if (sidecar.exists() && !sidecar.delete())
      LogManager.instance().log(this, Level.WARNING, \"Error on deleting checksum sidecar file '%s'\", null, sidecar);
  }

Comment on lines +1083 to +1088
if (maxWalVersion == null || maxWalVersion < diskVersion) {
LogManager.instance().log(this, Level.SEVERE,
"Page %d of file '%s' fails its checksum (disk v.%d, checksum v.%d) but the WAL retains no entry at that version or newer: the checksum is considered stale and the page is recovered with the standard rules",
null, pageNumber, file.getFileName(), diskVersion, slotVersion);
return false;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Logging a stale checksum at Level.SEVERE is inappropriate because it is a safe, expected fallback path (the page is guaranteed to be intact due to the fsync-before-WAL-drop barrier). In contrast, a genuine torn write (which is a critical corruption event) is logged at Level.WARNING at line 1090. Logging this benign condition at SEVERE can trigger false alerts in log monitoring systems. It should be logged at Level.WARNING or Level.INFO.

Suggested change
if (maxWalVersion == null || maxWalVersion < diskVersion) {
LogManager.instance().log(this, Level.SEVERE,
"Page %d of file '%s' fails its checksum (disk v.%d, checksum v.%d) but the WAL retains no entry at that version or newer: the checksum is considered stale and the page is recovered with the standard rules",
null, pageNumber, file.getFileName(), diskVersion, slotVersion);
return false;
}
if (maxWalVersion == null || maxWalVersion < diskVersion) {
LogManager.instance().log(this, Level.WARNING,
\"Page %d of file '%s' fails its checksum (disk v.%d, checksum v.%d) but the WAL retains no entry at that version or newer: the checksum is considered stale and the page is recovered with the standard rules\",
null, pageNumber, file.getFileName(), diskVersion, slotVersion);
return false;
}

@claude

claude Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review: per-page CRC32C checksums (issue 5054)

I reviewed the full diff, the surrounding PaginatedComponentFile / TransactionManager code, page-layout invariants, and the new tests. This is high-quality, well-reasoned work: the design write-up matches the implementation, the red-first PageChecksumRecoveryTest reproduces the exact {A1,A2,B3} corruption and proves the repair, and the correctness argument (fsync-before-WAL-drop barrier + in-order full-chain replay + the collectMaxWalVersions guard against stale-checksum downgrades) holds up. A few notes below, mostly minor.

Correctness (verified, no blockers)

  • CRC coverage is consistent between write and verify: write() computes CRC32C over the full page buffer (buffer.clear() -> full capacity == physicalSize) and the same buffer is written to disk; verify() reads exactly pageSize bytes and re-CRCs. Since physicalSize == pageSize (addressing invariant getPhysicalSize()n vs pageSizen), the ranges match.
  • The 8-byte slot at pageNumber*8 is always 8-byte aligned, so it never straddles a 512-byte sector boundary -> the slot write is atomic on real storage, which is what the slotVersion > diskVersion early-return relies on. Good.
  • Lock ordering is safe: every path takes channelLock (read/write) before synchronized(this) in the checksum helpers, so no deadlock between write/force/close/rename.
  • rename() calls close() first (which now closes the sidecar channel), so the stale-FD-after-move hazard is avoided; the sidecar reopens lazily against the new path.
  • The -1L sentinel in readPageChecksum can never collide with a valid slot (valid version >= 1 -> high bits non-all-ones). Sparse-zero slots (version <= 0) correctly return -1L.
  • HA/Raft replay is untouched (verifier == null on the 3-arg overload).

Performance

  • Extra fsync per flush barrier. force() now issues a second fsync (sidecar) inside the same barrier, and write() adds a second physical write per page flush. On write-heavy / small-transaction workloads this roughly doubles the flush-path fsync cost. It is on the flush thread (not commit latency) and gated by arcadedb.pageChecksum, but it is worth calling out explicitly in the release note as a throughput trade-off, and maybe worth a benchmark number for an fsync-bound workload. Given the CLAUDE.md performance mantra, an operator-visible number would help.
  • Per-flush allocations. Each write() allocates a fresh CRC32C + an 8-byte ByteBuffer (and readChecksumSlot/verify allocate too). The flush path is effectively single-threaded (PageManagerFlushThread), so a reused thread-local CRC32C + a reusable 8-byte buffer would eliminate that steady-state garbage cheaply. Minor, but aligns with the GC-pressure guidance.

Behavioral note: verification is not gated by the flag
checkIntegrity() always builds a RecoveryPageVerifier, even when arcadedb.pageChecksum=false. If an operator disables the feature (e.g. for the perf cost above) on a DB that already has sidecars, subsequent flushes stop updating slots -> slots go stale (older than disk) -> on the next recovery an intact page can be flagged torn and get an unnecessary full-chain replay. This is safe (the replay reconstructs the same committed state, and the maxWalVersions guard blocks any downgrade), just wasted work. Consider either (a) gating verification on the same flag, or (b) a one-line comment documenting that stale slots after a disable are intentionally tolerated as safe-but-wasteful. Not a blocker.

Tests
Strong coverage: the two torn-write variants (forged header-only tear, and persisted equal-version slot with CRC mismatch), the missing-sidecar migration path, the flush slot-contract, and the corrupted-sidecar-on-clean-DB (verification-is-recovery-only) case. Red-first evidence is documented. The added waitAllPagesOfDatabaseAreFlushed(db) drains in the sibling tests are a sensible fix for the setup/flush race.

One small suggestion: since this touches the durability barrier and does per-page I/O, a @tag("slow") might be warranted if the suite elapsed time is noticeable (the multi-version scenario spins up/kills a DB several times) - optional, at your discretion.

Nits

  • PaginatedComponentFile.drop(): sidecar.delete() return is checked and logged (good); rename() fallback oldSidecar.delete() ignores its return - harmless, but for symmetry you may want to log on failure there too.

Overall: solid, safe, and well-tested. My only real ask is documenting the extra-fsync throughput cost in the release note and considering the flag-gating of verification; the allocation cleanup is a nice-to-have.

@lvca
lvca marked this pull request as draft July 7, 2026 05:23
@lvca

lvca commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

On standby by design decision (Luca): the sidecar-per-data-file approach doubles the open-file-descriptor count, which matters on databases with many buckets/files. Converting to draft while the design is reconsidered.

Alternatives to evaluate when this resumes:

  • a single consolidated checksum file per database (one extra fd total, slots addressed by fileId + pageNumber);
  • interleaved checksum pages inside the data file itself (every Nth page holds the checksums for the following run - zero extra files, no page-header change, at the cost of remapping page addressing);
  • revisiting the page-header route with a global format-version gate rather than the per-component version (the blocker analysis in this PR's design notes still applies, but a dedicated engine-wide format epoch could clear it).

The recovery/replay machinery, the red-first tests and the correctness argument in this PR are design-independent and reusable whichever storage layout wins. Review-round responses are paused; the round-1 findings (flush-path allocations, flag-gating of verification, throughput number) fold into the redesign.

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.35897% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.62%. Comparing base (fba3902) to head (b2a9ed7).
⚠️ Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
...va/com/arcadedb/engine/PaginatedComponentFile.java 71.59% 18 Missing and 7 partials ⚠️
...n/java/com/arcadedb/engine/TransactionManager.java 77.27% 10 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               main    #5078    +/-   ##
==========================================
  Coverage     65.62%   65.62%            
+ Complexity      842      841     -1     
==========================================
  Files          1687     1687            
  Lines        135322   135507   +185     
  Branches      28959    28996    +37     
==========================================
+ Hits          88799    88926   +127     
- Misses        34413    34454    +41     
- Partials      12110    12127    +17     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lvca

lvca commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Deferred to a dedicated design-first campaign (not part of the 2026-07 audit follow-up, which is now complete). This stays a DRAFT. The blocking decision is the storage layout - the current .pcrc sidecar-per-data-file doubles the open-fd count (Luca's concern); the alternatives to weigh at kickoff are: a single consolidated per-database checksum file, interleaved checksum pages inside the data file (zero extra files), or the page-header route behind an engine-wide format epoch. The recovery/replay machinery, the red-first multi-version torn-write tests, and the correctness argument here are layout-independent and carry over to whichever wins.

@lvca

lvca commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

This will be postponed

@lvca lvca closed this Aug 3, 2026
@robfrank
robfrank deleted the feat/5054-per-page-checksums branch August 26, 2026 09:11
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.

[storage] Torn-write repair covers only the newest coalesced version; multi-version needs per-page checksums

1 participant