From 71f173c0fc1fbbbb643b135598c0a202a8ae12bf Mon Sep 17 00:00:00 2001 From: pingqiu Date: Fri, 19 Jun 2026 08:35:59 -0700 Subject: [PATCH] docs: record phase46 returned replica live gate --- seaweed-block/internal/docs/current-plan.md | 19 ++-- ...5-returned-replica-live-gate-qa-signoff.md | 95 +++++++++++++++++++ 2 files changed, 108 insertions(+), 6 deletions(-) create mode 100644 seaweed-block/internal/docs/qa-assignments/phase46-d5-returned-replica-live-gate-qa-signoff.md diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index c0b2e90af4..88ce0ea5a1 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -150,16 +150,23 @@ Goal: run the real returned-replica scenario through the product surfaces. Minimum gate: ```text -[ ] run returned-replica component gate -[ ] run iscsi-returned-replica chain -[ ] after r1 returns and r2 remains primary, r1 is non-primary and +[x] run returned-replica component gate +[x] run iscsi-returned-replica chain +[x] after r1 returns and r2 remains primary, r1 is non-primary and frontend_primary_ready=false -[ ] r2 remains the only primary/frontend-ready replica +[x] r2 remains the only primary/frontend-ready replica [ ] CRD/report/dashboard/explain show returned/fenced/recovering facts -[ ] no false Ready=True for stale or insufficient returned-replica evidence -[ ] cleanup verifier reports zero residue +[x] no false Ready=True for stale or insufficient returned-replica evidence +[x] cleanup verifier reports zero residue ``` +Implementation note: `f28ecf3` closes the host/live safety portion of D5. +The live chain exposed and fixed a product gap where assignments blocked during +durable recovery were not replayed after recovery, leaving returned replicas +safe but under-projected. See +`internal/docs/qa-assignments/phase46-d5-returned-replica-live-gate-qa-signoff.md`. +The remaining D5 item is the K8s product-surface gate. + ## D6: Multi-Volume / Close Gate Goal: prove the returned-replica lifecycle is per-volume and release-shaped. diff --git a/seaweed-block/internal/docs/qa-assignments/phase46-d5-returned-replica-live-gate-qa-signoff.md b/seaweed-block/internal/docs/qa-assignments/phase46-d5-returned-replica-live-gate-qa-signoff.md new file mode 100644 index 0000000000..83fb6ac7f3 --- /dev/null +++ b/seaweed-block/internal/docs/qa-assignments/phase46-d5-returned-replica-live-gate-qa-signoff.md @@ -0,0 +1,95 @@ +# Phase 46 D5 Returned-Replica Live Gate QA Sign-off + +Status: PASS for host/live returned-replica safety; K8s status-surface gate +remains separate. + +Validated source: `f28ecf3` + +Lab: m02 via isolated git-bundle clone at +`/tmp/seaweed_block_phase46_f28ecf3_20260619083402`. + +## Gates Run + +| Gate | Run | Result | +|---|---:|---| +| returned-replica-component-gate.yaml | `20260619-083445-124f` | PASS, 16/16 | +| iscsi-returned-replica-chain.yaml | `20260619-083410-a413` | PASS, 57/57 | + +## Live Evidence + +The iSCSI returned-replica chain exercised: + +```text +r1 primary -> r2 promoted -> r1 returns +``` + +Verified evidence: + +- `r2` remained the only primary: + - `AuthorityRole=primary` + - `FrontendPrimaryReady=true` + - `Healthy=true` +- returned `r1` remained non-primary and frontend-fenced: + - `authority_non_primary=true` + - `frontend_primary_ready=false` + - `healthy=false` + - `ReplicationRole=replica_ready` +- `r1` was visible to `r2` as a healthy peer after return: + - `ReplicaID=r1` + - `State=healthy` + - `Epoch=2` + - `ProbeInFlight=false` + - `Closed=false` +- durable recovery evidence was present: + - `blockvolume-r1-returned.log`: `durable recovered: recovered LSN=...` + - `status-durable-r2-primary-after-r1-return.summary`: `operational=true` +- data path survived failover and return: + - `pre-check-after-failover.log`: `/pre.bin: OK` + - `post-check.log`: `/post.bin: OK` +- cleanup was clean: + - no active iSCSI sessions + - no blockmaster/blockvolume/iscsi-target processes + +## Product Fix Proven By The Gate + +The first live attempts exposed a real product gap: if an assignment arrived +while durable recovery still blocked local readiness, the host dropped that +assignment and did not replay it after recovery. The returned old primary was +safe (`Healthy=false`, `FrontendPrimaryReady=false`) but not properly projected +as a supporting `replica_ready` replica. + +Fix in `c235b86`: + +```text +local readiness blocked assignment +-> durable recovery clears block +-> replication volume is installed +-> last blocked assignment is replayed +-> returned replica is admitted as SUPPORTING +-> frontend remains gated +``` + +The final run confirms the intended log and status: + +```text +replaying assignment after local readiness cleared +admitted as SUPPORTING replica r1 ... frontend remains gated +ReplicationRole=replica_ready +FrontendPrimaryReady=false +Healthy=false +``` + +## Non-Claims + +This D5 live gate does not claim automatic failback or automatic rebuild +execution. It proves the returned replica is visible, fenced from frontend use, +and usable as a healthy peer after recovery evidence. + +This D5 live gate also does not by itself close the K8s status-surface +requirement. CRD/report/dashboard/explain agreement for returned-replica +projection remains a separate product-surface gate. + +## Verdict + +D5 host/live returned-replica safety is PASS. The next Phase 46 work should +close the K8s product-surface gate and then the multi-volume close gate.