mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
e2cde75d43195621acaa8be9040b808375330889
Closes the test gap the recovery package's e2e_test.go disclaimed at
the dual-lane (cross-process-shape) level: live writes pushed via
PrimaryBridge.PushLiveWrite during an active dual-lane rebuild
session, exercising senderBacklogSink.flushAndSeal's atomic-seal
boundary on the real TCP wire.
Tests:
+ TestDualLane_LiveWritesDuringSession_AtomicSeal — full chain:
StartRebuild → engine→adapter→executor (dual-lane) → bridge →
Sender.Run → streamBacklog (100 backlog LBAs) + flushAndSeal +
barrier; concurrently 8 workers × 5 = 40 pushers via
bridge.PushLiveWrite. Asserts the atomic-seal contract:
every push that returned nil MUST be byte-equal on replica.
Verified: 40/40 pushes accepted, all on replica.
+ TestDualLane_LiveWritesDuringSession_AchievedLSN — sanity
lower bound: achievedLSN >= frozenTarget after backlog drain.
+ TestDualLane_PushLiveWrite_NoSession_Errors — bridge guard:
PushLiveWrite without an active session returns an explicit
"no active session for replica" error.
Substrate: memorywal on primary so live writes get LSN > frozenTarget
and streamBacklog filters them for flushAndSeal to ship as
WALKindSessionLive (BlockStore's walHead-synthesized LSN would have
collapsed all backlog entries past targetLSN under concurrent
primary.Write). Replica stays BlockStore.
This is G7 §2 #4 (concurrent writes during rebuild) in scope as the
architect ratified — the dual-lane bridging path now has end-to-end
coverage of that scenario, independent of P2d.
go test ./core/recovery/ ./core/transport/ ./core/replication/{,component} —
all PASS (no regressions; 3 new tests).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%