mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
4408dd8ee14919de590fe5ca49271c9d69733a71
The cut copies every candidate chunk under the capture barrier, so writes stall for the whole copy (1.50 s at 3 GiB dirty in a lab measurement). agent-workspace-design.md section 5 now has a proposed (not implemented) copy-before-write design: the barrier only fixes H and the candidate set; the first write to an uncopied candidate saves its at-H content to a local side store; a write to a chunk being copied waits; the copier reads the side store or the live chunk; the side store is dropped at the CAS and on crash, and recovery never reads it. Alternatives, the open BASE-install point, and the tests to write with the code are listed. Section 14's cut-cost gap points at it. docs/spec/CutCOW.tla (S4c) models today's barrier cut and the design, with a two-step chunk copy and one crash. Both pass exhaustively at MaxLSN 6 with 2 cuts (COW 34,342,214 states, barrier 5,070,320). Each of the six design rules is necessary: dropping any one violates BufFrozen. 11 configs, run.sh and the spec README updated; all 13 specs pass SANY with tla2tools 1.7.4. 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%