mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
5d5dedcfb68032edf2fe216fca14d1c178442490
codex01 row 9a review (60803a87), two P1s:
1. With W 1 and unacknowledged LSNs 2 and 3 appended, a begin at
BaseLSN 1 left 2 and 3 behind BaseCursor while the allocator went on
at 4; after complete an acknowledged write 4 met a hole at reopen
(strict R 1 < W 4; lagged could drop it). The begin now also needs
BaseLSN >= the highest appended LSN and is refused otherwise, writing
nothing; nothing is rewound or dropped.
2. A BASE write's UNKNOWN coverage was only in memory, and complete
published installed with the old clean map root. Complete now settles
step 2 like a checkpoint: one fsync, the metadata and chunk barriers,
a fresh owned-map candidate, and one installed publication carrying
it, under the leader role and the recovery-lifetime check. A guest
write that makes the candidate stale fails the completion.
Each has an actual-store control and a mutant. The held-test hooks now
always release in cleanup (P2).
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%