mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
02fb0914b4f417af221d6abfa52affae88e46ad6
Review follow-up. The pre-barrier hold proved in-session delivery and convergence but no longer the test's point: a newer WAL write for an LBA must win over an OLDER base frame for that LBA that arrives later. Drop the production SetPreBarrierHook seam (core/recovery is back to main) and hold the base lane instead, through the existing WithPrimaryStorageWrap: staleBaseHold captures the base read of LBA 5 (old value A) and holds it; the test pushes the same-LBA overwrites (the session cannot seal its recovery cut while base is held, so they ship in-session: this is also what fixes the flake), waits until the replica holds B at LBA 5, then releases the stale A frame. Convergence requires LBA 5 == B: RebuildSession.ApplyBaseBlock must skip a base frame for an LBA the WAL lane already applied (bitmap). 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%