mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
623c11da4c174942072637e1bf093b5bc25a2d17
A cut candidate chunk that is lazily absent but has local writes stays a candidate. Its first writer inside the copy window saved the chunk synchronously through Read, so every non-local block became a remote fetch bounded only by ReadMissTimeout (30 s), and every writer queued behind that chunk waited on it; an abort did not cancel the fetch. The in-window copier had the same shape: writers to a chunk it was copying waited on its fetch. The COW save and the in-window copy now read LOCAL blocks only (dirty map/WAL, the extent of present or locally written blocks, zeros for a chunk HEAD stores as ZERO) and never call the miss hook. A lazily-absent block's image at H is HEAD's by definition: it is listed as missing, and the copier fills it from the cut's base HEAD after it has released the entry, off the write path (bounded by ReadMissTimeout and the window's end). Tests: the lazy-HEAD saver test now holds every remote fetch once the window is open and requires the saving write to finish without one (it asserted the blocking fetch before); C3 holds the in-window local copy instead of a fetch and requires the write to complete with the remote held, the copier's HEAD fetch coming afterwards. Five declared mutants (blocking read, absent block read as local, no fill, saver drops the missing list, fill under the entry) each turn exactly their declared tests red. 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%