Commit Graph
3105 Commits
Author SHA1 Message Date
Ping Qiu cba3fae34a Merge pull request #535 from seaweedfs/fix/master-wait
fix: a workspace primary waits for an unreachable master instead of exiting
2026-11-24 11:25:13 -08:00
pingqiuandClaude Opus 5.5 fbcc89a5e6 docs: hosts' clocks stay within the clock-skew bound, or the lease bound does not hold
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:07:25 -08:00
Ping Qiu da5accc062 Merge pull request #552 from seaweedfs/test/head-readers
test: enumerate every HEAD reader and pin its absent-HEAD behaviour
2026-11-24 10:53:19 -08:00
Ping Qiu 9f98eb0e3b Merge pull request #550 from seaweedfs/test/interrupt-every-step
test: kill volume delete, fork and restore at every step and re-run
2026-11-24 10:46:06 -08:00
pingqiuandClaude Opus 5.5 5d0c9d8cec test: enumerate every HEAD reader and pin its absent-HEAD behaviour
A source scan lists every non-test function in core/ and cmd/ that reads
a volume's HEAD (ReadHead, GetHead, GetHeadRoot, getHeadRoot, headExists,
or a LookupEntry of HEAD) and fails when a reader is added or removed
without classifying it. Each reader names what it does when HEAD is
absent and the probe that pins it; readers that take an absent HEAD for
an empty one are marked GAP, so a change to that behaviour flips their
probes on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:43:19 -08:00
pingqiuandClaude Opus 5.5 aec5d41c54 test: kill volume delete, fork and restore at every step and re-run
A trace-driven matrix: each command is run once through a recording
filer to enumerate its filer writes (its step boundaries); then for every
write it is killed before the write reaches the filer and after it
applied with its reply lost, the catalog restarted, and the command
re-run (twice) with the same request id. The end state and the data are
checked: the volume deleted and refused, or the fork's or restore's
image reading back byte for byte. A killed fork's copy intent may outlive
the replay; the test checks it is that request's and that the copy sweep
past the deadline settles it with the image intact. A step added to a
command is covered without editing the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:37:30 -08:00
Ping Qiu c7b8c0f78c Merge pull request #546 from seaweedfs/test/537-slow-precopy-budget-outcome
test(durable): accept bounded slow precopy readiness outcomes
2026-11-24 09:20:14 -08:00
Ping Qiu 7e3c720768 Merge pull request #545 from seaweedfs/test/537-takeover-attach-budget
test(durable): accept bounded takeover readiness refusal
2026-11-24 09:19:36 -08:00
Ping Qiu 06dabf547d Merge pull request #544 from seaweedfs/test/537-cold-precopy-loaded-context
test(durable): quarantine unresolved cold precopy accounting
2026-11-24 09:13:15 -08:00
pingqiu 44498a3ec8 test(durable): pin virtual post-pause expiry to its readiness allowance 2026-11-24 08:39:07 -08:00
pingqiu 7b67e49c3a test(durable): release timely takeover before its own CAS allowance 2026-11-24 08:36:47 -08:00
pingqiu ebf49b4ee9 test(durable): drive virtual attachment through real takeover provider 2026-11-24 08:36:21 -08:00
pingqiu 4601a076e0 test(durable): require deterministic precopy write readiness outcomes 2026-11-24 08:35:24 -08:00
pingqiu a8a2c0b66d test(durable): diagnose missing readiness registration 2026-11-24 08:34:45 -08:00
pingqiu 1c9364e6e0 test(durable): require both attachment budget outcomes on virtual time 2026-11-24 08:33:40 -08:00
pingqiu e7d18a3b6a Merge branch 'test/537-cold-precopy-loaded-context' into test/537-slow-precopy-budget-outcome 2026-11-24 08:17:11 -08:00
pingqiu cd24230842 test(durable): limit precopy quarantine to unresolved cold fixture 2026-11-24 08:16:20 -08:00
pingqiu 5b80c97457 test(durable): cover readiness budget before caller expiry 2026-11-24 08:09:58 -08:00
pingqiu 44873969bd test(durable): distinguish slow precopy caller-budget busy outcome 2026-11-24 08:01:14 -08:00
pingqiu ee67149b11 test: snapshot caller error before reading freeze diagnostics 2026-11-24 08:01:13 -08:00
pingqiu 602e677a8b test: report pre-copy guest error operation and stop timing 2026-11-24 08:01:13 -08:00
pingqiu f13f00d1c8 test(durable): quarantine unresolved precopy accounting and admission 2026-11-24 07:48:14 -08:00
Ping Qiu 22766070d6 Merge pull request #543 from seaweedfs/test/537-csi-loaded-publish-wait
test: allow CSI publish observation after loaded recovery
2026-11-24 07:45:02 -08:00
Ping Qiu 5c24447069 Merge pull request #542 from seaweedfs/test/537-cow-capture-loaded-context
test: allow COW capture context to cover loaded WAL churn
2026-11-24 07:44:34 -08:00
pingqiu 9380992a66 test(durable): avoid assuming delayed CAS prevents HEAD settlement 2026-11-24 07:44:05 -08:00
pingqiu ff5a88edc6 test(durable): honor bounded takeover attachment readiness 2026-11-24 07:41:09 -08:00
pingqiu 709dceca75 test(durable): extend only cold precopy writer context under load 2026-11-24 07:37:38 -08:00
pingqiu 7d7fa5004f test: allow CSI publish observation after loaded recovery 2026-11-24 07:02:41 -08:00
pingqiu 23f2688161 test: allow COW capture context to cover loaded WAL churn 2026-11-24 07:01:55 -08:00
pingqiuandClaude Opus 5.5 30e1c9213c test: the 20-volume 2 s bar is asserted only where the store device does not stall
It measures the store write p99 beside the master's store before and
after the restart and asserts the bar only below 20 ms; otherwise it
reports the numbers without failing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:51:40 -08:00
pingqiuandClaude Opus 5.5 6d3b988744 docs: ledger row count after merging main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:33:52 -08:00
Ping Qiu 324d2edb85 Merge pull request #541 from seaweedfs/test/537-upload-overlap-startup-wait
test: allow upload overlap startup on loaded hosts
2026-11-24 06:33:45 -08:00
pingqiu d9a879fc1e Merge remote-tracking branch 'origin/main' into fix/master-wait 2026-11-24 06:33:39 -08:00
Ping Qiu 274ba9c444 Merge pull request #540 from seaweedfs/test/537-csi-private-lock-dir
test: isolate CSI volume subprocess lock directories
2026-11-24 06:33:23 -08:00
Ping Qiu d218e36707 Merge pull request #539 from seaweedfs/test/537-durable-loaded-deadline
test(durable): allow loaded-host setup in plain detach test
2026-11-24 01:18:19 -08:00
pingqiu aba6f601f3 test: allow upload overlap startup on loaded hosts 2026-11-24 00:56:58 -08:00
pingqiu 6411ce74e9 test: give CSI volume subprocesses private lock directories 2026-11-24 00:54:30 -08:00
pingqiuandClaude Opus 5.5 2a80101273 fix: one owner for the startup bound; a failing granted attach is bounded
The host owns the startup wait's one bound: it keeps the wait's start and
opens the window at the first reply at or after it; the run of replies
(and the window) ends on a transport, credentials or identity refusal;
/status shows the same bound. The provider asks the host for the bound
given its own start, and checks it on the attach retry path too: a
granted attach that keeps failing no longer holds the lease for ever
without serving. An identity refusal ends on an accepted identity-checked
call (the run of replies restarts there) or after 30 s of replies with no
new identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:52:11 -08:00
pingqiuandClaude Opus 5.5 e04178d67b docs: the master wait's window start and the identity refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:23:48 -08:00
pingqiuandClaude Opus 5.5 450bce4d9e feat: an identity refusal waits visibly instead of exiting 75
The master refuses an unregistered server id or a wrong host with a
typed IDENTITY detail (kind unregistered or wrong_host) on the lease
renewal and the assignment stream, text unchanged. The volume treats it
like refused credentials: no bound, /status reason "identity refused:
<kind>" with its age, never serves; it ends when an identity-checked
call (renewal, delivered assignment) is accepted, not on a heartbeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:23:30 -08:00
pingqiu 1378b4b2a9 test(durable): allow loaded-host setup in plain detach test 2026-11-24 00:21:17 -08:00
pingqiuandClaude Opus 5.5 04c07de5ac fix: the startup window opens at the first reply after the local open
The 30 s window opens at the first reply from blockmaster received after
the store is opened and recovered (or at a later streak's start), and runs
from the master's barrier time when that is later; local open and
recovery count toward nothing. The host hands the provider its contact
facts (streak start, latest reply, barrier time, final refusal).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:21:16 -08:00
pingqiuandClaude Opus 5.5 199b13b254 fix: the startup wait never ends before its limit from its own start
The host's bound counts from the first answer, but the lease guard (the
only source of the barrier time) starts after the local open and
recovery: a slow open found the bound already spent and exited 75 on
every start. The wait now ends no earlier than its limit from its own
start, and a grant on the same tick attaches before the bound is checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:19:03 -08:00
pingqiuandClaude Opus 5.5 e900848d82 docs: the master wait's scale bound is for the measured store device
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:11:07 -08:00
pingqiuandClaude Opus 5.5 7effdb07fb docs: the master wait's scale, measured (W per grant, 20 volumes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:09:45 -08:00
pingqiuandClaude Opus 5.5 6754c1daf1 test: measure W, the store write a lease grant makes (env-gated)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:53:34 -08:00
pingqiuandClaude Opus 5.5 35f56f51bc test: measure a volume whose barrier was not caught against the common one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:51:37 -08:00
pingqiuandClaude Opus 5.5 a87bc7082c docs: INV-WS-MASTER-WAIT-001 lists its new tests and the fast poll
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:46:47 -08:00
pingqiuandClaude Opus 5.5 fc990eef8a test: the barrier wake is jittered; a final refusal names the exit over superseded; docs
The lifecycle page says how the start waits (no bound while blockmaster
gives no reply, 30 s from the first answer or the barrier), what the new
log lines mean, and what to do on exit 78 reason=moved or reason=deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:46:16 -08:00
pingqiuandClaude Opus 5.5 ec8f1ee0f7 test: the fake HEAD follows the holder across moves
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:25:16 -08:00