mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
8ddb61001e1dae8b21bb11515bca4db6305be59f
Every read of a pool object already verifies its bytes against the name twice: the layout reader (ErrCorrupt -> ErrRemoteDamaged) and the engine's fill (sha256 and size against the HEAD ref). The engine's refusal was an untyped string; it is now ErrChunkContentMismatch, on the read-miss fill and on the cut COW fill alike. Controls: - storage: a seeded chunk whose bytes are flipped, truncated or extended is refused with ErrChunkContentMismatch on a guest read miss and on HydrateAll; nothing is served or installed, and once the remote serves the named bytes the same reads return HEAD's data. - durable, end to end over the real layout remote: a chunk captured to the pool, its blob damaged under the filer entry, a fresh replica attached from HEAD: the guest read fails with a typed error and never returns the stored bytes; restored, it reads HEAD's data. - chunkstore (real filer, chunkstore_integration): a child uploading pool objects through EnsureObject is SIGKILLed at random points over many rounds; each object it began is absent or holds exactly the bytes its name hashes, and a new session completes it. 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%