mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
092784eb8041c54d9a4445600773daf0ab4e9297
codex01 row 3 review (c9790ac4, AMEND):
- P1: a slot pwrite error (full or partial), like an fsync error, now
latches a publisher failure (ErrDescriptorPublishUncertain) and the store
fault through descriptorIOV3.latch, retains the uncertain candidate, and
refuses every further publication, rollover and reuse with no further
I/O until reopen reads the slots back (DESIGN 5 failure rule). The v2
syncFile leaf is unchanged.
- P2: publication-side counter checks return ErrCounterExhausted before
any write; installed -> installing is refused (not an 8.5 edge).
- Tests: full and partial slot write then error (refusals, no further
writes, no reuse, store fault latched, reopen selects the previous gen
after a torn write and the new gen after a complete one); counter
exhaustion for W, checkpoint, head and map generation; the extra edge.
- invariants.md: INV-WAL-V3-PUBLISH-001 statement and tests updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%