Commit Graph
1348 Commits
Author SHA1 Message Date
pingqiu 93d8e6cce9 Merge main and preserve detach fast-poll and urgent cut admission 2026-11-20 05:23:19 -08:00
pingqiu 7d0195d8a7 storage: require real CAS samples for freeze admission 2026-11-20 04:57:19 -08:00
pingqiu 40d217d91a test: empty tails still need an observed CAS cost 2026-11-20 04:51:32 -08:00
pingqiu 973e27e988 storage: scope freeze costs and resolve applied detach retries 2026-11-20 04:47:30 -08:00
pingqiu 88cfcdd939 test: pre-copy cost scope and applied-detach retry 2026-11-20 04:44:51 -08:00
pingqiu 6c3687f50a durable: keep final freeze nonblocking across both backend locks 2026-11-20 04:39:34 -08:00
pingqiu d721b69bdc test: final barrier never waits for backend state lock 2026-11-20 04:35:17 -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
pingqiu 6cefc26f41 storage: bound queued pre-copy by its caller context 2026-11-20 04:06:19 -08:00
pingqiu a587453ca8 test: queued pre-copy respects the caller deadline 2026-11-20 04:03:26 -08:00
pingqiu 0c9ca13a29 storage: retain cancellation and complete barrier timing in pre-copy 2026-11-20 04:02:09 -08:00
pingqiu a8c0142340 test: freeze timing includes tentative barrier pause 2026-11-20 04:00:43 -08:00
pingqiu d7a25b63a8 test: canceled tentative barrier must not stop service 2026-11-20 03:57:35 -08:00
pingqiu 1a97fc9638 storage: report freeze and extra CAS failure-path allowance 2026-11-20 03:52:05 -08:00
pingqiu 9faf91a36b test: qualify pre-copy across WAL wrap and fresh-host restore 2026-11-20 03:50:59 -08:00
pingqiu c80613db48 test: cover provider pre-copy drain and refused final settlement 2026-11-20 03:48:07 -08:00
pingqiu f28b4f271c storage: measure disjoint pre-copy payload and fixed costs 2026-11-20 03:47:27 -08:00
pingqiu 89b7f37290 test: pre-copy exhaustion and aborted rounds preserve old service 2026-11-20 03:45:27 -08:00
pingqiu 27f1f5beda durable: preserve freeze deadline cause during settlement 2026-11-20 03:44:14 -08:00
pingqiu 6f771c8169 durable: wire opt-in pre-copy into settled detach lifecycle 2026-11-20 03:43:25 -08:00
pingqiu c64244c61d test: tentative freeze never waits for admitted frontend I/O 2026-11-20 03:42:11 -08:00
pingqiu 6bbdbc3983 storage: admit final detached cut at tentative capture barrier 2026-11-20 03:41:09 -08:00
pingqiu 80e40c6cc0 test: read local blocks through store interface 2026-11-20 03:40:12 -08:00
pingqiu 0bccd0d686 test: require rolling pre-copy before final detach 2026-11-20 03:39: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
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