Commit Graph
397 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
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
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 9faf91a36b test: qualify pre-copy across WAL wrap and fresh-host restore 2026-11-20 03:50:59 -08:00
pingqiu fb1fd8eb2b fix: preserve pool lock faults and clear settled fallback status 2026-11-20 03:15:52 -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 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
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 257c50e2f2 fix: bound HEAD operations and confirm single-filer claims immediately 2026-11-20 01:59:30 -08:00
pingqiu 71d6c6b846 fix(storage): keep fences sticky and settle confirmed intent roots 2026-11-20 01:20:49 -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 782505510a fix(storage): allow bounded saver admission for write bursts 2026-11-20 00:36:47 -08:00
pingqiu 94aface439 fix(volume): report local cut abort before cancelled upload 2026-11-20 00:33:50 -08:00
pingqiuandClaude Opus 5.5 7578b34095 chunkstore: wait for the filer to register before refusing
A fresh filer registers with its master some seconds after it serves
(14 s in the swap smoke), so "no filer listed" is asked again every
second until a 60 s bound and refused only then. Several filers are
still refused at once; an unreachable master is retried the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:28:23 -08:00
pingqiuandClaude Opus 5.5 a5785ff688 blockvolume: refuse to start unless the chunk filer is the only filer
Block metadata needs exactly one filer behind --chunk-filer. At startup
the chunk wiring asks that filer for its masters and filer group
(filer_pb.SeaweedFiler/GetFilerConfiguration), then the masters for the
filers of that group (master_pb.Seaweed/ListClusterNodes). It refuses
unless a master lists exactly one, and when it cannot get that answer
within 15 s. The filer subset gains GetFilerConfiguration and a master
subset carries ListClusterNodes, generated with the committed plugin
versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:20:10 -08:00
pingqiu 586be4a6b4 test: model atomic pool initialization and interrupted publishers 2026-11-20 00:09:40 -08:00
pingqiu 22793c7dbb fix: publish host pool configuration atomically across initializer crashes 2026-11-20 00:07:37 -08:00
pingqiu 8bf7cfd663 fix: stagger first cuts without hiding later explicit success 2026-11-19 23:35:48 -08:00
pingqiu 1805e9ba54 test: bind host COW refusal to actual guest writes and worker joins 2026-11-19 23:16:02 -08:00
pingqiu ce691a9e1b docs: bind host cut admission to lifecycle invariants and bounded model 2026-11-19 22:57:17 -08:00
pingqiu 4c7dd6e749 docs: record cut retry deadline and causal controls 2026-11-19 20:26:18 -08:00
pingqiu 69072a0c27 fix: let bounded upload workers advance independently 2026-11-19 20:21:14 -08:00
pingqiu 260921eef3 fix: validate saved WAL blocks into the owned chunk buffer 2026-11-19 20:17:47 -08:00
pingqiu f87f513bdf test: cover cut abort status and named snapshot failure 2026-11-19 20:16:35 -08:00
pingqiu ed5d4369e7 docs(storage): define budget admission and revocation lifetime 2026-11-19 20:16:35 -08:00
pingqiu 6caa8699cb docs(storage): describe the configurable cut payload bound 2026-11-19 20:16:35 -08:00
pingqiu df5d3a6d7d storage: keep zero-data guest writes progressing without aborting updates 2026-11-19 20:16:35 -08:00
pingqiu bc73b9920a storage: let local reads re-resolve across flushing without pinning WAL 2026-11-19 20:16:35 -08:00
pingqiu 2717e4ec69 storage: bind chunk capture and flush contracts to the local borrow lifetime 2026-11-19 20:16:35 -08:00
pingqiu 0c02f20eac storage: document adaptive staging contracts and exercise steady hot writes 2026-11-19 20:16:34 -08:00
pingqiu 48b4c0cc18 storage: refuse regressed frontiers before streaming payloads 2026-11-19 20:16:34 -08:00
pingqiu e94aac6faf storage: document streamed cut ownership and cover held remote saves 2026-11-19 20:16:34 -08:00
pingqiu 8e42479b77 docs: place payload resource contract in the invariant ledger 2026-11-19 20:16:34 -08:00
pingqiu ae8faa3fcb docs: bind cut payload limits to the resource regressions 2026-11-19 20:16:34 -08:00
pingqiu 2ac398fdd6 docs: tie snapshot refusal to the rebuild machine 2026-11-19 16:03:15 -08:00
pingqiu 590337c058 test: witness the RMW fence before actual caller expiry 2026-11-19 16:03:15 -08:00
pingqiu add6fc6e3d docs: bind hydration and rebuild error regressions in ledger 2026-11-19 16:03:15 -08:00
pingqiu a3bc6aa51f docs: align hydration diagram with caller and worker lifetimes 2026-11-19 16:03:15 -08:00
pingqiu 731f278542 storage: fail rebuild snapshots on read faults and preserve RMW fencing 2026-11-19 16:03:15 -08:00
pingqiu cf917925f7 record shared hydration wait and close invariants 2026-11-19 16:03:15 -08:00
Ping Qiu ecc1a6ef64 Merge pull request #256 from seaweedfs/feat/chunk-manifest-format3
feat(chunkstore): version chunk manifests with encoding and birth frontiers
2026-11-19 14:34:43 -08:00
pingqiu b99e081cf2 docs: restore UTF-8 invariant ledger with cut birth rule 2026-11-19 13:47:38 -08:00
pingqiu 4bee2d1192 docs: record recovery-bounded cut birth invariant and regression 2026-11-19 13:46:33 -08:00
Ping Qiu 3a2147dac7 Merge branch 'main' into fix/takeover-read-before-chunk-attach 2026-11-19 13:12:53 -08:00
Ping Qiu 152087abf0 Merge branch 'main' into work/checkpoint-proof-progress-controls 2026-11-19 09:35:54 -08:00
Ping Qiu 9486bad3f2 Merge branch 'main' into fix/write-command-budget 2026-11-19 08:13:55 -08:00
pingqiu c8abeec62d docs: place readiness invariant in the frontend ledger 2026-11-19 07:36:47 -08:00