mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
docs: close phase56 rebuild contract gate
This commit is contained in:
1 parent
f83a16d6da
commit
dbf3c87f7d
3 files changed
+176
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Current Plan: Phase 56 Returned Replica Rebuild/Catch-up Contract
|
||||
|
||||
Status: dev complete; QA ready.
|
||||
Status: complete.
|
||||
|
||||
Branch target: `phase54-returned-replica-reintegration-executor`
|
||||
|
||||
@@ -76,7 +76,7 @@ classify the gap precisely enough to hand off rebuild execution.
|
||||
|
||||
### D2: Surface And CRD Status Gate
|
||||
|
||||
Status: implemented locally.
|
||||
Status: QA PASS.
|
||||
|
||||
Prove the D1 contract reaches all user-visible status surfaces:
|
||||
|
||||
@@ -94,7 +94,7 @@ Implementation:
|
||||
|
||||
### D3: Executor Non-Execution Gate
|
||||
|
||||
Status: implemented locally.
|
||||
Status: QA PASS.
|
||||
|
||||
Prove the existing authority executor does not act on
|
||||
`authority.rebuild_returned_replica` yet:
|
||||
@@ -157,3 +157,15 @@ dashboard_rebuild_contract=ok
|
||||
```
|
||||
|
||||
If the runner gate passes, Phase 56 can move from `dev complete` to `closed`.
|
||||
|
||||
Result:
|
||||
|
||||
```text
|
||||
20260623-144531-00ee returned-replica-rebuild-contract-chain PASS 14/14
|
||||
```
|
||||
|
||||
Sign-off:
|
||||
|
||||
```text
|
||||
internal/docs/qa-assignments/phase56-returned-replica-rebuild-contract-qa-signoff.md
|
||||
```
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
# Phase 56 Finished Plan: Returned Replica Rebuild/Catch-up Contract
|
||||
|
||||
Status: complete.
|
||||
|
||||
Branch: `phase54-returned-replica-reintegration-executor`
|
||||
|
||||
## Goal
|
||||
|
||||
Move beyond Phase 54's ACK-eligibility executor by defining the next returned
|
||||
replica boundary: a fenced returned replica whose durable frontier is behind the
|
||||
required frontier must surface as a rebuild/catch-up candidate, without
|
||||
executing rebuild traffic yet.
|
||||
|
||||
## What Changed
|
||||
|
||||
Phase 56 split the returned-replica executor model into two paths:
|
||||
|
||||
- `authority.reintegrate_returned_replica`: the existing Phase 54 ACK
|
||||
eligibility path, used only when the returned replica is fenced and its
|
||||
durable frontier covers the required frontier.
|
||||
- `authority.rebuild_returned_replica`: the new rebuild/catch-up contract path,
|
||||
used when the returned replica is fenced but its durable frontier is behind.
|
||||
|
||||
The rebuild contract is explicit but disabled:
|
||||
|
||||
```text
|
||||
execution_enabled=false
|
||||
mutation_allowed=false
|
||||
allowedMutationClass=["rebuild_traffic"]
|
||||
forbiddenMutationClass=["ack_eligibility","frontend_publication","failback"]
|
||||
```
|
||||
|
||||
Terminal evidence required for a future rebuild executor:
|
||||
|
||||
```text
|
||||
frontend_fenced_before_rebuild
|
||||
primary_unchanged
|
||||
durable_frontier_caught_up
|
||||
no_frontend_publication
|
||||
no_cross_volume_identity_change
|
||||
```
|
||||
|
||||
## Safety Boundary
|
||||
|
||||
No data movement was implemented.
|
||||
|
||||
No frontend publication, failback, ACK mutation, or authority change was added.
|
||||
The authority executor ignores disabled rebuild contracts and fails closed if
|
||||
any unsupported/non-ACK contract is incorrectly marked executable or mutating.
|
||||
|
||||
## Verification
|
||||
|
||||
Local:
|
||||
|
||||
```text
|
||||
go test ./core/ops ./cmd/sw-block
|
||||
helm lint charts/seaweed-block
|
||||
swblock validate testops/scenarios/returned-replica-rebuild-contract-chain.yaml
|
||||
```
|
||||
|
||||
QA:
|
||||
|
||||
```text
|
||||
returned-replica-rebuild-contract-chain
|
||||
20260623-144531-00ee
|
||||
14/14 PASS
|
||||
```
|
||||
|
||||
Terminal evidence:
|
||||
|
||||
```text
|
||||
phase56_returned_replica_rebuild_contract_status=ok
|
||||
summary_rebuild_preflight_ready=1
|
||||
summary_rebuild_contract_disabled=1
|
||||
summary_rebuild_action_disabled=1
|
||||
explain_rebuild_contract_disabled=1
|
||||
operator_snapshot_rebuild_contract=ok
|
||||
dashboard_rebuild_contract=ok
|
||||
```
|
||||
|
||||
Sign-off:
|
||||
|
||||
```text
|
||||
internal/docs/qa-assignments/phase56-returned-replica-rebuild-contract-qa-signoff.md
|
||||
```
|
||||
|
||||
## Next
|
||||
|
||||
Phase 57 should decide whether to start the actual rebuild executor skeleton or
|
||||
first add a stronger rebuild data-plane design gate. The minimum next feature
|
||||
must include real evidence for catch-up progress and terminal completion before
|
||||
any frontend publication or failback can be considered.
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
# Phase 56 Returned Replica Rebuild/Catch-up Contract QA Sign-off
|
||||
|
||||
Verdict: PASS.
|
||||
|
||||
Validated commit: `3cea6da phase56: fix rebuild contract gate action assertion`
|
||||
|
||||
Scenario:
|
||||
|
||||
```text
|
||||
testops/scenarios/returned-replica-rebuild-contract-chain.yaml
|
||||
```
|
||||
|
||||
QA run:
|
||||
|
||||
```text
|
||||
20260623-144531-00ee
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```text
|
||||
14/14 PASS
|
||||
```
|
||||
|
||||
## Terminal Evidence
|
||||
|
||||
From
|
||||
`/mnt/smb/work/share/g15d-k8s/20260623-144531-00ee-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt`:
|
||||
|
||||
```text
|
||||
phase56_returned_replica_rebuild_contract_status=running
|
||||
summary_rebuild_preflight_ready=1
|
||||
summary_rebuild_contract_disabled=1
|
||||
summary_rebuild_action_disabled=1
|
||||
explain_rebuild_contract_disabled=1
|
||||
operator_snapshot_rebuild_contract=ok
|
||||
dashboard_rebuild_contract=ok
|
||||
phase56_returned_replica_rebuild_contract_status=ok
|
||||
```
|
||||
|
||||
## Verified Contract
|
||||
|
||||
- `authority.rebuild_returned_replica` is surfaced for a fenced returned
|
||||
replica whose durable frontier is behind the required frontier.
|
||||
- Executor preflight is `ready` only because the frontier gap is explicit:
|
||||
durable LSN `4240`, required LSN `4241`.
|
||||
- Executor contract is `disabled`.
|
||||
- `execution_enabled=false`.
|
||||
- `mutation_allowed=false`.
|
||||
- Future allowed mutation envelope is exactly `rebuild_traffic`.
|
||||
- Forbidden mutation classes include `ack_eligibility`,
|
||||
`frontend_publication`, and `failback`.
|
||||
- The user action remains rejected with `policy_disabled`.
|
||||
- Report, explain, operator-snapshot, and dashboard agree.
|
||||
|
||||
## Residue
|
||||
|
||||
Clean. The gate is replay/surface-only and created no Helm release, PVC/PV, pod,
|
||||
namespace, or SwBlock CRD residue.
|
||||
|
||||
## Finding
|
||||
|
||||
Initial run `20260623-144435-d0fc` failed because the gate asserted that the
|
||||
report `managed_volume_action` summary line contained `mutation_allowed=false`.
|
||||
That summary line does not print mutation state for actions; the
|
||||
operator-snapshot does, and the gate already checks it there. The gate assertion
|
||||
was narrowed in `3cea6da`, then the scenario passed.
|
||||
|
||||
This was a gate assertion issue, not a product defect.
|
||||
Reference in new issue
Block a user