mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
25a1be2872561d6bc569f1bacdbc29c7eb12a168
Per architect's Path B ruling (2026-04-30), the four §13-era tests
that were skipped during slice-1 are re-authored to §6.3 contracts.
Three pass cleanly; one stays skipped pending deeper integration work.
TestWalShipper_R2_SaturationUnderSustainedLoad
(renamed from TestWalShipper_BacklogStaysBacklog_UnderLoad)
§13-era claim: "mode stays Backlog under saturation". Retired —
§6.3 single drive() collapse removes mode-as-dispatch. Re-authored
to the §6.3 saturation observability contract:
- Slow EmitFunc + pre-seeded substrate (lag ≥ threshold)
- Background writer extends head during scan
- OnSaturation fires single-shot per session
- cursor advances monotonically (INV-MONOTONIC-CURSOR)
- Eventually catches up after writer stops
10× stability locally clean (~5s per run with slow-emit).
TestDualLane_LiveWritesDuringSession_AtomicSeal
Pre-§6.3: per-pusher acceptedSet vs replica.Read; failed ~1/10
runs under §6.3 (concurrent CASE A scans race with producer).
Architect Path B: drop per-pusher cache; assert post-barrier
convergence on backlog + accepted-push LBA range. Cache-data
mismatch can no longer surface; the canonical truth at each
accepted LBA is primary.Read post-barrier.
15× stability locally clean.
TestPillar2B_LiveWrites_HighPressure_BarrierIntegrity
Architect's "DisableTimerDrain + 串行 push" path B variant.
The race surfaced under §6.3 isn't frame-tear; it's a session-
bracket vs in-flight-emit race: drive() emits hold writeMu
briefly per frame, sender's BarrierReq writeMu acquire can
interleave between emits, and receiver may then read the
barrier and return before in-flight push frames arrive. This
is a real §6.3 semantic gap with concurrent push during a
session, NOT a §6.3 correctness bug — the §6.3 model doesn't
bracket per-push barriers (architect's "另开 ADR for per-push
barrier semantics"). Path B explicitly listed serialized
pushes as an acceptable shape: 128 sequential pushes preserve
high-pressure intent without the race.
15× stability locally clean.
TestT4a6_BestEffort_DisconnectThenReassign
STAYS SKIPPED with a more honest §6.3 + walstore-recycle note.
§6.3 auto-fill via substrate (Path B) requires substrate to
retain the entries the new shipper backfills. In this L2
integration test, the second batch's LSNs may be past the
walstore recycle floor by the time the post-reassign shipper
opens with cursor=0; ScanLBAs returns ErrWALRecycled, drive()
treats as transient (cursor stays 0), and CASE B fires with
lsn=61 cursor=0 → tail-gap error. The proper §6.3 contract
here is engine-driven rebuild on WAL-recycled signal, but
that path isn't wired through this test's UpdateReplicaSet
flow. Re-author requires either tuning walstore retention OR
wiring the rebuild-on-recycled escalation; both out of slice-2B
scope. Tracked in §11.9 follow-ups.
5× cross-package sweep (transport / recovery / replication /
replication/component / storage / storage/memorywal /
storage/smartwal) all green post-slice-2B.
Refs: architect Path B ruling 2026-04-30; v3-recovery-algorithm-
consensus.md §6.3 + §6.9 + §11.9. Companion to slice-1 b3826b2,
slice-2A 8672e63.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%