mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
The component harness (cluster.go) constructed dual-lane executors with rid="r-%d" while the engine driver in dual_lane_engine_test.go sent AssignmentInfo / ProbeResult under "replica-%d". Pre-Phase-0- Fix-#1 this silently diverged: bridge keyed coord.PinFloor under "r-N", sink keyed WalShipper writeMu + post-emit RecordShipped under "replica-N". The rebuild barrier completed despite the keying mismatch (replica-driven BarrierResp), so the bug stayed invisible. Now that startRebuildDualLane fail-closes on a mismatched non-empty construction RID (commit11392ba), this drift surfaces as a hard error in TestDualLane_EngineDrivenRebuild_HappyPath / _WithPushLive DuringSession. Aligning the harness to the engine driver's "replica-%d" convention restores the invariant: construction RID == engine arg, coord/sink/bridge all keyed identically. Test assertions that probed the stale "r-0" key (lines 110, 197, 251 region) updated to "replica-0". Refs: INV-RID-UNIFIED-PER-SESSION (commit11392ba); v3-recovery-execution-institution.md Phase 0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>