mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
357f286eaee13c7c6a493bf27f2af68318f0ec08
QA round-42 refined the round-41 invariant
INV-REPL-RECOVERY-STALE-ENTRY-SKIP-PER-LBA with two scoping rules
that must be honored at T4d implementation:
(1) INV-REPL-RECOVERY-STALE-SKIP-DATA-ONLY-NOT-ACCOUNTING:
Stale skip applies to DATA WRITE only. Per-session accounting
(bitmap, completion mask, scan coverage) MUST update as though
the entry was processed. Otherwise:
- Recovery session's completion logic thinks LBA wasn't reached
- Bitmap signals "recovery hasn't covered this slot" to live lane
- Barrier achievedLSN judgment is wrong
Skip means: don't write data. Still mark "I saw this LBA."
(2) INV-REPL-LIVE-LANE-NEVER-SKIPS-LSN:
Per-LBA-LSN skip rule applies to RECOVERY lane ONLY. Live ship
lane MUST NOT skip on stale LSN — live writes are authoritative
on (lineage, session) grounds and that gating is sufficient.
An "old LSN" on live is a duplicate/replay; per-LBA-LSN
comparison is recovery-lane-only.
Files updated:
- stale_entry_adversarial_test.go: TestComponent_StaleEntrySkip_
RuleStatement extended with both refinements + 2 new T4d
adversarial test requirements (recovery-stale-skip-still-marks-
bitmap; live-lane-old-LSN-applies-normally)
- memory feedback_recovery_stale_entry_skip.md: refinements +
expanded T4d blocker list
T4d blocker list now (round-42 revision):
1. Per-LBA applied LSN tracking at replica apply layer
2. Recovery apply skips entries whose LSN <= per-LBA applied LSN
3. Skip data write but UPDATE per-session accounting (refinement #1)
4. Apply skip rule on recovery lane only; live keeps current
lineage-gated apply (refinement #2)
5. BlockStore.ApplyEntry: gate walHead update on lsn > walHead
6. 5 adversarial tests un-skipped + extended (architect set + QA
refinement set)
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%