mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
d65471908feb1f38b5c7cdfaba1d65a8efc72d71
walstore-chunk volumes share walstore's on-disk format (SWBK), and on a fresh host their published bytes may exist only in the remote HEAD. Opened by auto as plain walstore, such a root would skip chunk recovery, install no read-miss or fencing hooks and serve the local, absent extent. Auto now refuses any volume whose root carries chunk metadata (<volume>.chunk*: fresh marker, dirty bitmap and deltas, presence map), on both the open and the create path, with ErrImplKindMismatch naming the files and asking for --durable-impl=walstore-chunk with its remote configuration. Nothing is deleted or converted. Tests: a lazy fresh-host chunk root (block published on host A, host B attached and closed before fetching it) is refused by auto and read exactly by the explicit walstore-chunk selector; any chunk root is refused; a stray fresh marker without a volume file is refused and left in place. autoProvider registers its cleanup (review P3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%