mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
b1871160e0e05203f3f7705185cd3f65abcf34ed
* test: red test for the unfenced dual-lane rebuild port A host fenced as primary still accepts base blocks on the dual-lane port. Expected to fail until the port is fenced (#84). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fence the dual-lane rebuild port with the replica admission rules The dual-lane port applied base blocks and WAL entries with no epoch or role check. SessionStart now carries the sender epoch, and the production ReplicaBridge asks ReplicaListener on SessionStart and each mutating frame: no frame on a primary, below the floor, with epoch 0, or before the role is known. A higher epoch is persisted first, and a fence waits for frames already admitted. The SessionStart frame grows from 28 to 36 bytes, so both ends of a dual-lane rebuild must run this version. Fixes #84 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * keep BaseDone and BarrierReq inside the dual-lane counted section BaseDone released admission before MarkBaseComplete advanced the frontier, so a fence could return while that mutation was pending. BarrierReq was not gated, so a fenced replica could still answer it. Both now stay inside the section; the barrier holds it until its response is written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * end the barrier section before its reply A fence drains effects, not network writes: holding the barrier section through BarrierResp let a peer that does not read make FenceAsPrimary time out after every effect had finished. The section now covers the sync and the completion check, and ends on every path before the reply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%