Commit Graph
2351 Commits
Author SHA1 Message Date
pingqiu 2badef77ac Merge remote-tracking branch 'origin/fix/cut-host-slot-wait' into feat/host-urgent-pending 2026-11-21 17:33:48 -08:00
pingqiuandClaude Opus 5.5 23522de145 durable: slot-wait tests record the limiter's own admissions
- The provider tests wrap the real limiter and record every Admit call
  with its time and outcome. Retry gaps are measured between recorded
  held-slot refusals, and the first admission after the slot frees is
  timed from the release (<= 400 ms); publication is bounded separately.
- The close-race control bounds its wait for Close and joins it from a
  cleanup registered before the goroutine starts.
- Wording: a shorter delay range makes a late volume likely, not certain,
  to retry first; the seeded one-slot simulation is a regression check,
  not a proof of the bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:30:02 -08:00
pingqiuandClaude Opus 5.5 2ff59b9529 hostlimit: gofmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:27:48 -08:00
pingqiuandClaude Opus 5.5 14f0d7401f hostlimit: background cuts wait while urgent work is pending; launch checks
- A pool file, urgent-pending, signals urgent work on the host. An
  urgent cut holds it shared for its lease, and HoldUrgentPending lets a
  caller hold it across a stop or a drain. A Normal admission probes it
  exclusively without waiting and, while it is held, is refused with
  ErrUrgentPending (an ErrSlotsHeld, so the timer waits instead of
  failing). Urgent admissions are unaffected.
- blockvolume checks --host-limit-dir before using it and refuses to
  start when it is missing or not a directory, under a temporary
  directory (/tmp, /var/tmp, /dev/shm, the process temp dir), on a
  network file system (NFS, CIFS, SMB2, FUSE on Linux), or already in
  use with different host-limit flags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:26:46 -08:00
pingqiuandClaude Opus 5.5 e94dbbafd6 durable: slot retry delay is random per attempt and shrinks with lateness
A timer cut refused for held host slots retries after a delay drawn
below 200 ms x interval/(interval+late), so the volume furthest behind
its interval retries soonest; a fixed per-volume phase let the same
volumes win every round. A deterministic test runs V timer policies
against one slot (service T, all due at once) and checks no volume
waits longer than (V-1)(T + poll + 200 ms) and every volume keeps
cutting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:19:00 -08:00
pingqiuandClaude Opus 5.5 1d861a806c durable: slot wait ends with any later cut; a closed limiter refuses as revoked
- Status ends a recorded host slot wait once the layer's CutSeq moves
  past the one it was recorded under, so a detach's seal (made after the
  timer stopped) or an explicit cut clears it; the count is kept.
- A successful cut observed during a slot wait also drops the pending
  slot retry.
- Admission that finds the limiter closed after acquiring its pool slot
  returns ErrRevoked, not ErrSlotsHeld.
- The provider test witnesses every refused attempt with a timestamp
  (at least 8 in 2.5 s, none more than 400 ms apart), then bounds the
  admission after the slot frees (400 ms) and publication (5 s)
  separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:13:21 -08:00
pingqiuandClaude Opus 5.5 57e30e11c0 durable: a timer cut refused for held host slots waits instead of backing off
Host admission is a try-lock. With one cut slot per host, every volume
whose timer fires while another volume's cut holds the slot was refused
and backed off 1 s doubling to 30 s, adding up to 30 s to its interval
and favouring whichever volume happened to win.

hostlimit returns ErrSlotsHeld (an ErrBusy) when every slot is held. The
cut policy treats that refusal as a wait: no backoff, no minimum
spacing, the timer is not reset, and the retry comes after the volume's
stable slot jitter (at most 200 ms). Other errors, an oversized payload
or an unusable pool included, keep the backoff. Status reports
CutSchedule.HostSlotWaits and HostSlotWaitSinceNs, the start of the
current wait (0 when not waiting). Ledger row INV-CUT-TIMER-SLOT-WAIT-001.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:58:33 -08:00
pingqiuandClaude Opus 5.5 74fab1baf0 durable: tests for timer cuts refused for held host slots (red)
A periodic cut refused because every host cut slot is held must be a
wait, not a failure: no backoff, retry after the volume's jitter, and
the wait reported in status. The types the tests name are added; the
behaviour is not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:58:15 -08:00
Ping Qiu ec03498005 Merge pull request #370 from seaweedfs/train/20261121-11b
train 11: deletion list 1, seal resume, row splits + length check, runbook, test fixes
2026-11-21 15:33:30 -08:00
pingqiuandClaude Opus 5.5 4d9883f101 docs(invariants): keep INV-WS-FREEZE-ACCOUNTING-001 within 300 characters too
Same as the previous commit: the 'not reachable' marker lives in the
note under the table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:00:05 -08:00
pingqiuandClaude Opus 5.5 cc4115741b docs(invariants): keep INV-CUT-PRECOPY-001 within 300 characters in the composed train
The 'not reachable in this release' marker added to its statement is
already stated in the note under the table; the length check added
in the same train rejects the longer statement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:00:05 -08:00
pingqiu 9a1785efb9 Merge remote-tracking branch 'pr/368' into train11 2026-11-21 14:25:29 -08:00
pingqiu 68f5932ffc Merge remote-tracking branch 'pr/366' into train11
# Conflicts:
#	docs/design/invariants.md
2026-11-21 14:25:29 -08:00
pingqiu c4b8eaf2c0 Merge remote-tracking branch 'pr/353' into train11 2026-11-21 14:25:14 -08:00
pingqiu 1a0e39bdd7 Merge remote-tracking branch 'pr/365' into train11 2026-11-21 14:25:14 -08:00
pingqiu 0e5a6361a3 Merge remote-tracking branch 'pr/360' into train11 2026-11-21 14:25:14 -08:00
pingqiu 0d3efefe18 Merge remote-tracking branch 'pr/364' into train11
# Conflicts:
#	docs/design/invariants.md
2026-11-21 14:25:08 -08:00
pingqiuandClaude Opus 5.5 ef1a70382a docs: recovery point and consistency first; control endpoint exposure; vacuum commands; verify exit codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:13:54 -08:00
pingqiuandClaude Opus 5.5 261e5c4468 docs: snapshots, restore and getting space back for walstore-chunk volumes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:02:35 -08:00
pingqiuandClaude Fable 5.2 2bcb2dbf02 invcheck: the long-statement list cannot grow; one row keeps its comparison
The list's size is pinned by a constant and, where the base commit is at
hand, every listed row must have been listed there. The head-belt fence
row again says the re-read owner is compared with the publisher's own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 11:32:27 -08:00
pingqiuandClaude Fable 5.2 aa9657f383 docs(invariants): one property per row, first batch; a length check
Ten over-long rows of the chunk cut, workspace and GC machines become
rows of one property each (statements at most 300 characters); clauses
that only repeated a Part A transition guard become pointers to it. The
invariant check gains a length test with a list of the rows still over
300 characters, which may only shrink. Two test comments lose a
reviewer reference.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 11:24:15 -08:00
pingqiu cf4f682ac7 test(chunkstore): compare reclaimed manifest keys in binding form 2026-11-21 10:51:46 -08:00
pingqiu 6adc39432a test(transport): join floor handlers before restoring fault hooks 2026-11-21 10:51:01 -08:00
pingqiu dbf894ef77 test(chunkstore): cross the strict GC skew boundary 2026-11-21 10:50:15 -08:00
pingqiu dadeb62eea test(chunkstore): report retained roots on GC acceptance failure 2026-11-21 10:49:03 -08:00
pingqiu 10e88f765e test(chunkstore): publish integration fixtures as segmented HEADs 2026-11-21 10:46:58 -08:00
pingqiuandClaude Opus 5.5 3897052b0c docs(readme): a pull request runs the heavy packages it changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:33:46 -08:00
pingqiu eca7d9e498 Merge remote-tracking branch 'origin/main' into docs/ci-full-suite-note 2026-11-21 10:33:46 -08:00
pingqiuandClaude Fable 5.2 8b4d357d59 Merge main: rows recounted with the document check
Main's wording wins where it changed a row; the not-reachable marks, the
two new rows and the note are kept; the count is recomputed from the
tables and the document check passes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:32:47 -08:00
pingqiu 9e6692871d Merge remote-tracking branch 'origin/main' into test/plain-seal-reuses-uploads 2026-11-21 10:31:01 -08:00
Ping Qiu 1628604983 Merge pull request #362 from seaweedfs/train/20261121-10
train 10: invariant check, rpc seam, control bind, UNKNOWN precedence, scheduled snapshots, offline seal, restore CLI, CI routing
2026-11-21 10:29:43 -08:00
pingqiu e60f9c2e88 docs: state the process lifetime limit of seal progress 2026-11-21 09:30:06 -08:00
pingqiu f7224067a2 test: prove plain seal resumes completed uploads after expiry 2026-11-21 09:28:13 -08:00
pingqiuandClaude Fable 5.2 69b83d6e16 volume, blockvolume: refuse the frozen detach and the pre-copy detach flag
A detach request with frozen set is answered 409 frozen_detach_unsupported
before any provider call, and blockvolume refuses to start with
--chunk-detach-precopy. Nothing is deleted: both mechanisms become
unreachable in this release. The request fields stay so the strict
decoder keeps answering the typed refusal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:04:51 -08:00
pingqiuandClaude Fable 5.2 b846d82b53 test: a frozen detach request and the pre-copy detach flag must be refused
Red on this commit: a detach request with frozen set still reaches the
provider, and blockvolume still starts with --chunk-detach-precopy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:04:51 -08:00
pingqiuandClaude Opus 5.5 8db62cb989 docs(invariants): recount the ledger line for the composed train
Each member stated the count for its own rows on main; together the
tables hold 163 rows (141 ACTIVE, 19 STUB, 3 ARCHIVED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:49:32 -08:00
pingqiu fbfa84fe37 Merge remote-tracking branch 'pr/359' into train10 2026-11-21 08:49:15 -08:00
pingqiu 4d2603659c Merge remote-tracking branch 'pr/361' into train10 2026-11-21 08:49:15 -08:00
pingqiu 503ce05340 Merge remote-tracking branch 'pr/358' into train10
# Conflicts:
#	docs/spec/README.md
2026-11-21 08:49:04 -08:00
pingqiu 7daf5d9c5b Merge remote-tracking branch 'pr/347' into train10 2026-11-21 08:48:50 -08:00
pingqiu e0f1a909e7 Merge remote-tracking branch 'pr/356' into train10 2026-11-21 08:48:50 -08:00
pingqiu 6ba36965a2 Merge remote-tracking branch 'pr/357' into train10 2026-11-21 08:48:50 -08:00
pingqiu 60de0a4da8 Merge remote-tracking branch 'pr/354' into train10 2026-11-21 08:48:50 -08:00
pingqiuandClaude Opus 5.5 0fd141b030 fold: restore create prints one JSON document on stdout; a refused start says the target exists
With --status-addr the create result goes to stderr, so stdout carries only
the driver status (one JSON document). A driver start refused after the create
(for example the target is not attached at that blockvolume yet) adds a line
saying the target was created and the --volume command that starts the
restore once it is attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:36 -08:00
pingqiuandClaude Opus 5.5 13000c1d13 docs: INV-SHARE-ACTIVATION-001 is enforced in sealSnapshot, shared by explicit and scheduled snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:10 -08:00
pingqiuandClaude Opus 5.5 720fe00f23 sw-block: ops chunk restore creates the restore volume (--source --snapshot --target)
sw-block ops chunk restore --source --snapshot --target creates the target
from the snapshot with Catalog.Restore (idempotent by --request-id) and, with
--status-addr naming the blockvolume that serves the target, starts the
restore driver there in the same command and prints both results. Without
--status-addr it creates the target and prints the command that starts the
driver once the target is attached. --volume keeps driving an existing
restore. README lists both forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:43:47 -08:00
pingqiuandClaude Opus 5.5 d885740ca5 docs(readme): say which tests run on GitHub and which on the per-train VM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:33:05 -08:00
pingqiu 346e644c91 Merge remote-tracking branch 'origin/main' into fix/workspace-uncertain-precedence 2026-11-21 08:31:37 -08:00
pingqiuandClaude Fable 5.2 d8c0ffc741 Merge main (record the parent the previous commit lacked)
The previous commit carried the tree of main plus this change but named
only one parent, so the branch looked diverged. Same tree, both parents.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 08:31:06 -08:00
pingqiuandClaude Opus 5.5 85b6e9c9a0 docs: resolve the merge's invariants.md hunks (left unresolved in the merge commit)
The Train 9 merge committed conflict markers in docs/design/invariants.md. Both
sides added a B.2 row after the same anchor: keep main's
INV-MASTER-JOURNAL-ISOLATION-001 and this PR's INV-SEC-CONTROL-BIND-001, and
recount the Part B summary from the tables (161 rows: 139 ACTIVE, 19 STUB,
3 ARCHIVED, 146 new).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:30:34 -08:00