mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
54191e188d9f0e0d72b913ac32271559b6bbbc98
The activation limiter codex01 named: v3 WriteBatch (the real 8 KiB multi-block write) and its replay/read path returned errV3NotYet. Dark: - WriteBatch on a v3 store appends one multi-block record (type 0x04) with LSNs first..first+n-1 and one CRC32C, so a crash keeps all of it or none; the writer consumes the whole range (DESIGN 6.7, r16), the map coverage follows every block's LSN, and each block's dirty entry names its data offset inside the record. A single block is a write. - One whole-record reader (readWholeRecordV3, blockOfRecordV3) serves the store read, the flusher and codex03's dark offline reader: it sizes the record from its type and Length, validates the whole record and the block's LBA, LSN and offset in it. The read retry also compares the data offset. - Recovery's replay and the install-path replays (the reopen cut and the same-open continuation) republish every block of a batch. Controls: round trip across a crash in both modes, a torn batch (dropped whole when unacknowledged, fail-closed when acknowledged), a crash mid-batch (latched, never acknowledged, none served), the ack boundary, the flusher, the offline reader and the map coverage. Mutants: block 0 reads, first-block replay, a split batch, a flusher at offset 0, an offline reader indexing only block 0, no map coverage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.2%