mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
3c67ee5681aa5f50ec29897835c7ee22615944da
DESIGN r17.4 section 8.3, "Resume (same ID)", store level and dark (no current caller resumes: both receivers begin fresh install IDs). Under installMu exclusive the resume appends nothing until all three hold: 1. trusted-through-W: the recovered suffix is intact (R >= W*) and E is at or past the persisted retainedHead; 2. the 6.6 fence of [E, floor + WALSize) with fsync; 3. a publication of retainedHead = E (G3). Otherwise it refuses with ErrInstallSuffixDamaged, writing nothing, and the volume stays installing. The writer continues at E (forward only) and the reopen's trusted install-lane records are replayed so the completed image serves them. The installing Recover now keeps those records with its recovered bounds. Controls: an intact resume that serves the recovered LSN 11 and fences the dropped LSN 13; a damaged suffix refused; E below the persisted head refused, while a covering supersession anchors at P = that head and stays resumable across a crash. Mutants: no fence, ignoring the damage, no E >= head check, anchoring the supersession at P = E. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%