Skip to content

fix(storage): make snapshot COW and reopen GC durable#29

Merged
wchwawa merged 3 commits into
mainfrom
fix/durable-snapshot-gc
Jul 16, 2026
Merged

fix(storage): make snapshot COW and reopen GC durable#29
wchwawa merged 3 commits into
mainfrom
fix/durable-snapshot-gc

Conversation

@wchwawa

@wchwawa wchwawa commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make snapshot COW ownership explicit through durable leases and epochs
  • fence physical GC against readers, writers, checkpoints, and reopen recovery
  • persist dropping-tree and structural-reclaim work so crashes cannot leak or resurrect blobs
  • enforce child-before-parent checkpoint durability and bounded FIFO reclamation

Why

NoKV durable restore-to-fork keeps object-backed metadata alive independently of the source snapshot. Holt must therefore preserve snapshot-shared frames across COW, checkpoint, crash recovery, and physical GC without relying on process-local ownership.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • snapshot crash/reopen, checkpoint failpoint, property, system fault, WAL replay, and write/delete churn suites

The three commits separate the storage mechanism, crash/GC integration tests, and documentation. The resulting Git tree is identical to the fully validated local tree (9502163e615f40d4aba288f0d41284659bb3c978).

wchwawa added 3 commits July 16, 2026 11:49
Signed-off-by: wchwawa <wch19961116@gmail.com>
Signed-off-by: wchwawa <wch19961116@gmail.com>
Signed-off-by: wchwawa <wch19961116@gmail.com>
@wchwawa
wchwawa marked this pull request as ready for review July 16, 2026 03:02
@wchwawa
wchwawa merged commit ee9e328 into main Jul 16, 2026
11 checks passed
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.

1 participant