mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
be0c988b803358b61e10109d05ebd417559ff0e4
DESIGN r17.4 sections 6.6 (G3) and 8.3, dark: - An installing Recover keeps its recovered bounds (E, R, intact or damaged) and moves the allocator state above every trusted record, but fences, publishes and admits nothing; the outcome stays the typed ErrBaseIncomplete. - A superseding begin after that reopen checks the coverage rule, then fences [E, floor + WALSize) and fsyncs before its two-slot installing publication, so no record of the old install beyond E re-chains; it anchors at P = max(E, the persisted retainedHead), never lowers retainedHead, and restarts the writer at P (advanceHeadV3, forward only, no LSN change). Reads and the flusher see a recovery boundary. - A damaged suffix refuses nothing here: the supersession does not need trusted-through-W, because the new BASE covers every record <= W. Controls: the G3 revival schedule (A's LSN 13 beyond the gap would chain on after B's 12 at the same position) and a covering supersession over a damaged, acknowledged suffix (below W refused, at W installs and serves). Mutants: no fence; trusted-through-W applied to the supersession. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%