Commit Graph
2428 Commits
Author SHA1 Message Date
pingqiu 20ce4ea004 Merge PR #390
# Conflicts:
#	docs/design/invariants.md
2026-11-21 20:09:18 -08:00
pingqiu 64f47d337f Merge PR #391 2026-11-21 20:09:12 -08:00
pingqiu dd6fd3c2bb cli: clarify logical holder and sealed generation fields 2026-11-21 20:02:31 -08:00
pingqiu 87b92007dd test(cli): pin operator identity output order 2026-11-21 20:02:07 -08:00
pingqiu 4a58b209b0 docs(cli): distinguish host validity from forced-move admission 2026-11-21 19:55:06 -08:00
Ping Qiu 0dd882d419 Merge pull request #389 from seaweedfs/train/20261122-15
train 15: host-slot wait for timer cuts, upload reuse after an aborted cut
2026-11-21 19:53:47 -08:00
pingqiu 96079684fb test(cli): exercise planned handoff against the real master RPCs 2026-11-21 19:53:40 -08:00
pingqiu a6190e59f6 docs(cli): document seal-before-revoke planned handoff workflow 2026-11-21 19:50:12 -08:00
pingqiu c5d9a99d34 fix(cli): validate presence and value of the seal declaration 2026-11-21 19:48:45 -08:00
pingqiu 25493cf7ae test(cli): reject a zero seal flag combined with unsealed revocation 2026-11-21 19:48:31 -08:00
pingqiu 7071b9af72 feat(cli): print existing workspace lease ACK and move facts 2026-11-21 19:48:12 -08:00
pingqiu f99538eb5d test(cli): specify the read-only workspace handoff view 2026-11-21 19:47:31 -08:00
pingqiu 4d5056090c test(cli): preserve exact existing HTTP error response bytes 2026-11-21 19:46:37 -08:00
pingqiu dacd9be6ff feat(cli): expose plain detach and print the sealed generation 2026-11-21 19:46:24 -08:00
pingqiu 0dde418dfd test(cli): specify plain detach request and seal readout 2026-11-21 19:45:52 -08:00
pingqiu a20e83872c feat(cli): encode clean authority moves without orchestration 2026-11-21 19:43:01 -08:00
pingqiu a1f524e625 test(cli): specify clean move encoding and grant binding 2026-11-21 19:42:14 -08:00
pingqiu b3e98de4a4 feat(cli): expose explicit workspace revocation over the existing RPC 2026-11-21 19:41:14 -08:00
pingqiu 2c681f3cfd test(cli): require an explicit seal choice before revocation 2026-11-21 19:40:31 -08:00
pingqiu fd7b4569d4 test(cli): specify explicit workspace revocation requests 2026-11-21 19:38:39 -08:00
pingqiuandClaude Fable 5.2 81a1dc9b1f docs(invariants): split the last over-long row; the long-statement list is empty
INV-WAL-DATA-SYNC-001 becomes five rows of one property each (automatic
sync choice, explicit override, status, allocation at create, prezero).
Three clauses with no test of their own are listed as enforced by
reading. Every statement in the ledger is now at most 300 characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 19:10:32 -08:00
pingqiu 38dc7d6702 Merge PR #386 2026-11-21 19:01:05 -08:00
pingqiu 0cff342c48 Merge PR #385 2026-11-21 19:01:05 -08:00
pingqiu 28b16cf92f Merge PR #381
# Conflicts:
#	docs/design/invariants.md
2026-11-21 19:01:05 -08:00
Ping Qiu 1f050ea61a Merge pull request #388 from seaweedfs/train/20261122-14
train 14: row splits batch 3, stop admission-cutoff log, capture floor variable, fsck warning
2026-11-21 18:54:14 -08:00
pingqiu e6417e6e9d Merge PR #387 2026-11-21 18:16:43 -08:00
pingqiu 30289edb90 Merge PR #383 2026-11-21 18:16:43 -08:00
pingqiu 6c7d87b645 Merge PR #379
# Conflicts:
#	docs/design/invariants.md
2026-11-21 18:16:43 -08:00
pingqiu b3dd906c33 Merge PR #380 2026-11-21 18:16:36 -08:00
pingqiuandClaude Opus 5.5 5991507beb docs: status schema lists Chunk.CutSchedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:12:31 -08:00
pingqiuandClaude Fable 5.2 8c154f7de0 docs: SeaweedFS maintenance commands that destroy walstore-chunk volumes
A walstore-chunk volume's data is held in needles that no file's chunk
list names, so volume.fsck with its delete flags would remove it. The
operator document now says which commands must never run on such a
cluster, which only report, and which are safe.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:10:37 -08:00
pingqiu fc7d7eb13f test(storage): leave ledger update to shared docs follow-up 2026-11-21 17:57:26 -08:00
pingqiuandClaude Opus 5.5 f83bb48a7a docs(invariants): leave INV-CUT-STAGED-REUSE-001 unchanged in this test-only change
A TEST change may not touch the ledger; the row's Tests cell is updated
in a separate docs change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:55:48 -08:00
pingqiuandClaude Opus 5.5 56d8f086ba Merge origin/main into fix/cut-host-slot-wait; slot-wait tests take HEAD's generation at open as the baseline
Opening a volume on an empty remote now publishes HEAD generation 1 (the
open claim), without a cut. The slot-wait tests read HEAD after open and
check it does not move while the slot is held, and that no admission
succeeded then; publication and the seal are checked against that
baseline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:45:40 -08:00
pingqiuandClaude Opus 5.5 78d5b5e5f2 storage: the revoke-reuse test counts every PUT attempt before the fake
A re-send of an already completed key is now counted before the fake
remote sees it (the real put path reconciles such a re-send), and the
test asserts no completed key is re-sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:43:14 -08:00
pingqiu 534d141a67 Merge remote-tracking branch 'origin/main' into docs/invariants-split-batch3 2026-11-21 17:41:54 -08:00
pingqiu d402aa112b docs(storage): link mid-upload cancellation regression to reuse invariant 2026-11-21 17:41:20 -08:00
Ping Qiu 92b9293ac0 Merge pull request #382 from seaweedfs/train/20261122-13
train 13: durable-root sizing doc, row splits batch 2, spec bounds table
2026-11-21 17:41:12 -08:00
pingqiuandClaude Opus 5.5 7d56ce0324 docs(invariants): INV-CUT-STAGED-REUSE-001 lists the MaxHold revocation test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:40:03 -08:00
pingqiu 14facd1169 test(storage): count retained upload bytes after a mid-cut abort 2026-11-21 17:37:30 -08:00
pingqiuandClaude Opus 5.5 13b1f154e3 storage: test that a cut revoked mid-upload keeps its uploads
A cut whose host budget is revoked after two of five chunk PUTs (the
limiter's MaxHold abort) leaves HEAD unchanged; the next cut uploads only
the three chunks not yet uploaded, retransmits nothing, and publishes
the full image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:36:42 -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 8fe90ba66d blockvolume: the capture-interval floor is a package variable
Replace the build-tagged constant with durable.MinCaptureInterval
(default 5 minutes). The flag check and the flag help read it; a
program that builds blockvolume with a shorter floor sets it before
parsing flags. The OSS binary behaves as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:23:20 -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 f8743e62a1 blockvolume: the capture-interval floor lives in a build-tagged file
The 5-minute --chunk-capture-interval floor moves to capture_floor.go,
built unless the swb_enterprise tag is set; a build with the tag supplies
its own minChunkCaptureInterval. The OSS build behaves as before: below
5m is refused (60 s now tested), and the refusal and the flag help name
the floor from the constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:14:57 -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
pingqiu 29a5b4f94c Merge remote-tracking branch 'origin/main' into test/stopio-began-log
# Conflicts:
#	docs/design/invariants.md
2026-11-21 17:09:46 -08:00
pingqiuandClaude Opus 5.5 93471b8007 invariants: INV-STOP-FLIP-CUTOFF-001 in the Part B table beside INV-CUT-PLAIN-DETACH-001 (was in Part A's M5 table)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:09:31 -08:00
pingqiu ab3b203064 Merge PR #372 2026-11-21 17:07:35 -08:00
pingqiu 3ab9218728 Merge PR #376 2026-11-21 17:07:35 -08:00