Commit Graph
1891 Commits
Author SHA1 Message Date
pingqiu ed08492b87 test: specify certified prefix pruning and recovery coverage guards 2026-11-20 05:17:12 -08:00
pingqiu 85bf19a8bb fix: prune replica versions only behind certified recovery prefixes 2026-11-20 05:17:12 -08:00
pingqiu 28d3054de5 test: preserve lane semantics after durable version pruning 2026-11-20 05:17:12 -08:00
pingqiu 0a95b53940 test: keep long-run source versions monotone 2026-11-20 05:17:12 -08:00
pingqiu bc1b0fbaeb test: expose replica version history growth and recovery holes 2026-11-20 05:17:12 -08:00
pingqiu 54c1c61156 test: cover both post-close recovery decisions and settle the latest session 2026-11-20 05:17:12 -08:00
pingqiu 4987a49d31 fix: emit one recovery action per post-close durable acknowledgement 2026-11-20 05:17:12 -08:00
pingqiu 68da02fb5f fix: preserve missing probe confidence with retained durable progress 2026-11-20 05:17:12 -08:00
pingqiu 364118a28e fix: deduplicate recovery observations and share replica apply versions 2026-11-20 05:17:11 -08:00
pingqiu 056c80a957 test: expose missing production replica apply-gate wiring 2026-11-20 05:16:51 -08:00
pingqiu 14d724e3de test: witness an admitted old wire frame overtaken by a newer session 2026-11-20 05:16:51 -08:00
pingqiu 67e0cf0bbe test: pin duplicate recovery preparation and delayed probe schedules 2026-11-20 05:16:51 -08:00
pingqiu c400b28f5f test: reproduce cross-session replica byte regression 2026-11-20 05:16:51 -08:00
Ping Qiu 8a603b3334 Merge pull request #291 from seaweedfs/feat/lease-fast-poll-on-detach
blockvolume: poll the workspace lease fast once a detach starts
2026-11-20 05:02:06 -08:00
pingqiuandClaude Opus 5.5 3de728e23d Clear lease stop-pending when a detach aborts and serving resumes
A detach whose final cut provably did not publish resumes serving, but
the stop-pending mark set at the start of the detach stayed latched on
the host and on its lease guard, so a host that kept serving renewed
about four times a second for good instead of once per renewal delay.

The detach hook now returns an attempt token, and the provider calls a
second hook with that token only after it resumed serving on a proven
abort. The host clears stop-pending, on itself and on its guard, only
for the latest attempt, so an older attempt's resume cannot clear a
newer pending detach; an applied, fenced or unknown outcome keeps it.

Tests: the guard's sleep is now observable through a scheduling seam,
so the cadence test asserts the delay chosen after each renewal and the
kick path separately, with no wall-clock window; the detach hook is
witnessed before the drain starts; test workers are joined, bounded and
failing on timeout, before their providers are closed. The invariants
document gains the StopPending mode of the lease guard (scheduling
only, no admission or ACK change) and INV-WS-STOP-PENDING-001. Comments
now say that 250 ms bounds the sleep after a completed renewal, not the
time from a revocation to its ACK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:17:44 -08:00
pingqiuandClaude Opus 5.5 c0297da05a Poll the workspace lease fast once a detach starts
On a graceful stop the chunk layer is detached first and the master marks
the lease revoking right after, but the host's lease guard only learned of
the revocation on its next renewal, up to 10 s later (3-6 s measured), and
the guest's writes were refused all that time.

A detach now calls an optional provider hook, OnChunkDetach, which the
blockvolume host connects to its lease guard: the guard renews at once and
then every 250 ms until it fences. The pending mark is never cleared; a
detached host does not serve again under the same guard. The hook fires
only on the detach path, not on the lease-fence StopIO.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:17:28 -08:00
Ping Qiu a6aeb99e0c Merge pull request #280 from seaweedfs/feat/host-cut-limiter
feat: coordinate host background cuts with shared budget slots
2026-11-20 04:13:31 -08:00
Ping Qiu c5bc3f82a1 Merge pull request #288 from seaweedfs/fix/head-takeover-belt
storage: confirm HEAD ownership before serving and settling cuts
2026-11-20 03:36:58 -08:00
pingqiu fb1fd8eb2b fix: preserve pool lock faults and clear settled fallback status 2026-11-20 03:15:52 -08:00
pingqiu c57d6747a0 test: cover final fallback release and configuration lock faults 2026-11-20 03:15:04 -08:00
pingqiu 9a88af11f8 Merge main into HEAD belt and retain both invariant rows 2026-11-20 03:05:48 -08:00
pingqiu 3eda912af8 fix: scope upload pacing and degraded cut admission honestly 2026-11-20 02:41:45 -08:00
pingqiu b1124f739e test: expose unavailable-pool policy and process-local pacing scope 2026-11-20 02:39:34 -08:00
pingqiu b621337dc6 Merge remote-tracking branch 'origin/main' into feat/host-cut-limiter
# Conflicts:
#	docs/design/invariants.md
2026-11-20 02:38:04 -08:00
pingqiu 25e60aa27e test: witness permanently held attach resolution with reviewed source unchanged 2026-11-20 02:21:00 -08:00
Ping Qiu 50fb815470 Merge pull request #284 from seaweedfs/fix/cut-abort-reason
fix(storage): tolerate short saver bursts and report local aborts
2026-11-20 02:15:19 -08:00
pingqiu 4a341d1683 fix(durable): preserve caller deadline through bound claim cancellation 2026-11-20 02:07:14 -08:00
pingqiu ad494f7200 test: hold ambiguous outcome lookup during permanent attach outage 2026-11-20 02:06:48 -08:00
pingqiu 257c50e2f2 fix: bound HEAD operations and confirm single-filer claims immediately 2026-11-20 01:59:30 -08:00
pingqiu ff4d1195ba test: cover empty-base fence and bounded single-point claims 2026-11-20 01:57:24 -08:00
pingqiu 271b98eb2c fix(durable): cancel takeover cooling when provider closes 2026-11-20 01:40:49 -08:00
pingqiu dbfa9424ae test(durable): reach a new-epoch claim in close cancellation control 2026-11-20 01:40:18 -08:00
pingqiu 2e764385b7 test(durable): retain backend reference for close probe 2026-11-20 01:37:26 -08:00
Ping Qiu e6c74a55bc Merge pull request #285 from seaweedfs/feat/blockvolume-single-filer
blockvolume: refuse to start unless the chunk filer is the only filer
2026-11-20 01:37:09 -08:00
pingqiu 1cfc09de45 test(durable): bound provider close during takeover cooling 2026-11-20 01:37:03 -08:00
pingqiu 9759dc02d6 fix(storage): retain takeover cooling across retries and hydration fencing 2026-11-20 01:31:33 -08:00
pingqiu dd38de086c test(storage): prevent retries from bypassing takeover cooling 2026-11-20 01:26:58 -08:00
pingqiu 40f1df163d test(storage): include takeover cooling in restore fixture deadlines 2026-11-20 01:25:04 -08:00
pingqiu 816eb03286 fix(storage): confirm publication from validated root without segment scans 2026-11-20 01:22:57 -08:00
pingqiu c39240587f test(storage): require root-only HEAD publication confirmation 2026-11-20 01:22:16 -08:00
pingqiu 71d6c6b846 fix(storage): keep fences sticky and settle confirmed intent roots 2026-11-20 01:20:49 -08:00
pingqiu bb9a22da21 fix(storage): retain protected intents through fence cleanup and close 2026-11-20 01:18:35 -08:00
pingqiu 74aab9a442 fix(storage): confirm HEAD publication and fence displaced owners 2026-11-20 01:17:23 -08:00
pingqiu 147bb23142 test(storage): reproduce late-owner HEAD success and cleanup hazards 2026-11-20 01:15:36 -08:00
pingqiu dd759ed074 test(storage): join both burst writers after cleanup timeout 2026-11-20 01:12:03 -08:00
pingqiuandClaude Opus 5.5 3d850aa236 chunkstore: compare filer addresses with their zone; recheck the deadline
isTarget compares resolved addresses with netip (IPv6 zone included);
an address that does not parse never matches. A round whose bound ran
out while a later master was still being asked does not pass on an
earlier favourable answer. The ledger row maps to the M4 table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 01:10:15 -08:00
pingqiuandClaude Opus 5.5 961f08f66e chunkstore: the single filer must be the configured one, on every master
A pass now needs a master listing exactly the configured filer (same
gRPC port, same or co-resolving host). Every master is asked: any
master listing another filer or several refuses at once, whichever
answers first. Each master call is bounded within the remaining time,
so a stalled master no longer consumes the whole bound. Startup census
only; invariant INV-WS-SINGLE-FILER-001 and its M6 row record it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:53:13 -08:00
pingqiu cfd2a8332c fix(volume): retain terminal close precedence for aborted cuts 2026-11-20 00:49:09 -08:00
pingqiu 2f6cf84c04 test(storage): witness unread candidates after hot-first ordering 2026-11-20 00:39:11 -08:00
pingqiu 782505510a fix(storage): allow bounded saver admission for write bursts 2026-11-20 00:36:47 -08:00