mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
360e540c761f3d2a89b74a4067e0cf7502a71062
Architect round-43 signed the T4d fix shape:
T4d stale-entry safety belongs at the REPLICA RECOVERY APPLY
GATE (a NEW component, lane-aware), with substrate fixes as
defense-in-depth. The invariant is about NO PER-LBA DATA
REGRESSION, not just frontier monotonicity.
The gate is lane-aware:
live lane:
use existing lineage/session/live-order rules
do not use recovery stale-skip; do not update recovery coverage
recovery lane:
always update recovery accounting / coverage
if entry.LSN <= perLBAAppliedLSN[LBA]:
skip data write
else:
ApplyEntry(...)
update perLBAAppliedLSN[LBA] = entry.LSN
perLBAAppliedLSN source: from storage if exposed cleanly; else
session-local map seeded from recovery/live applies. Pre-existing
state correctness eventually requires substrate to expose per-LBA
applied LSN metadata.
T4d task list (round-43 final):
1. PRIMARY FIX — replica recovery apply gate (new component)
- Lane-aware (live vs recovery)
- Per-LBA applied LSN tracking
- Recovery: skip data write on stale; always update accounting
- Live: passes through unchanged
2. DEFENSE-IN-DEPTH — substrate hardening:
- BlockStore.ApplyEntry: gate walHead = lsn on lsn > walHead
- walstore + smartwal: substrate-level stale-protection or
per-LBA applied LSN exposure
3. 5 adversarial tests un-skipped + extended (architect set +
QA refinement set, unchanged from round-42)
Files updated:
- stale_entry_adversarial_test.go: TestComponent_StaleEntrySkip_
RuleStatement extended with round-43 gate shape (verbatim) +
task list
- memory feedback_recovery_stale_entry_skip.md: round-43 fix
shape + perLBAAppliedLSN source caveat + substrate triage table
- design memo v3-phase-15-t4c-architect-review-changelist.md §3:
round-43 sign inscribed; substrate triage table replaces older
per-substrate-action table
22 packages green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%