Commit Graph
2393 Commits
Author SHA1 Message Date
pingqiu 7968ea3904 test: connect expired regrant to sealed reopen and local WAL return 2026-11-21 20:06:15 -08:00
pingqiu 8120d0102d test: require the full skew barrier before same-holder regrant 2026-11-21 20:04:44 -08:00
pingqiu 27f8c2967e test: require durable expired same-holder lease re-grant 2026-11-21 19:05:46 -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 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 534d141a67 Merge remote-tracking branch 'origin/main' into docs/invariants-split-batch3 2026-11-21 17:41:54 -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 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 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
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
pingqiu c575469054 Merge PR #373 2026-11-21 17:07:35 -08:00
pingqiuandClaude Opus 5.5 e2cc37cfd9 durable: the logged boundary is the backend's admission flip itself (recorded under mu), not a time before the call
StorageBackend records stopFlipAt under mu right after operational goes
false (setOperationalLocked and both TryStopIO flips); the detach logs it
as 'admission closed at' beside 'StopIO returned at'. Admission is
unchanged: an I/O whose gate ran before the flip is admitted and drained
by StopIO; every gate after it refuses (INV-STOP-FLIP-CUTOFF-001). The
stamp is taken after the store (errs toward a false alarm) and logged
only on a successful stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:03:28 -08:00
pingqiu a4ca4867de Merge branch 'docs/invariants-split-batch2' into docs/invariants-split-batch3
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:49:44 -08:00
pingqiuandClaude Fable 5.2 705656010b docs(invariants): one property per row, third batch (local WAL store)
Seventeen over-long rows of the local WAL store (format v3) become 92 rows
that state one property each, every statement at most 300 characters.
Clauses that only repeated a Part A transition guard point to that
transition; the write-admission wait gets its line in the table of bounded
waits. The long-statement list shrinks from 18 to 1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:49:29 -08:00
pingqiuandClaude Fable 5.2 f6b3b3e34d docs(spec): bounds rows for the three reopen and seal specs
HeadReopenBelt, PlainSealReplay and SealedReopen arrived on main with
their results in the README; each gets its Exhausted bounds row from those
figures. Nothing re-run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:48:29 -08:00
pingqiu 26ef627088 Merge remote-tracking branch 'origin/main' into ci/spec-bounds-check 2026-11-21 16:48:13 -08:00
pingqiu e99c9a8a37 Merge remote-tracking branch 'origin/main' into docs/invariants-split-batch2
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:47:19 -08:00
Ping Qiu b4633efd2c Merge pull request #374 from seaweedfs/train/20261122-12
train 12: HEAD reopen claim + expected-server slot facts
2026-11-21 16:46:32 -08:00
pingqiuandClaude Fable 5.2 f2cdd75f8d docs(invariants): one property per row, second batch
Eleven over-long rows (authority store, workspace lease, forced move and
lost range, operator confirmation, frozen-request validation, host cut
budget, replica per-LBA rule, RF=3 promotion) become rows that state one
property each, every statement at most 300 characters. Clauses that only
repeated a Part A transition guard now point to that transition. 185 rows
become 216; the long-statement list shrinks from 28 to 18.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:27:03 -08:00
pingqiuandClaude Opus 5.5 76e56fc6cd durable: log when a detach's I/O stop began (the operational flip), next to when StopIO returned
A guest error after the flip is a refusal by contract; only an error on
I/O admitted before the flip is a data-path failure. The detach now logs
'I/O stop began at' (taken just before the flip: plain stop, live
StopIO, or the pre-copy TryStopIO) beside 'StopIO returned at', both
RFC 3339 nanoseconds, so a measurement can count from the flip (#375).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:25:45 -08:00
pingqiuandClaude Opus 5.5 089373518a durable: test: a detach logs when its I/O stop began
Red on main: only 'StopIO returned at' is logged, so a test measuring
guest errors cannot tell a refusal after the operational flip (by
contract) from an admitted I/O that failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:25:22 -08:00
pingqiu 50d4b0357f Merge PR #371
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:11:43 -08:00
pingqiu 0a26213aaa Merge PR #367 2026-11-21 16:11:28 -08:00
pingqiuandClaude Opus 5.5 de9da9483a docs: durable-root note states the flush-latency floor, the exact measured figures, and that the stall cause is open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:02:59 -08:00
pingqiuandClaude Opus 5.5 5fd02b4716 docs: put the blockvolume durable root on low-latency storage, with the measured reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:59:50 -08:00
pingqiu 0fd6f31137 Merge origin/main into fix/head-reopen-incarnation 2026-11-21 15:36:11 -08:00
pingqiuandClaude Opus 5.5 c546662f51 invariants: INV-OBS-SLOT-FROM-EXPECTED-SERVER-001 (approved; lands after Train 11)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:35:54 -08:00
pingqiu 865befccc2 Merge remote-tracking branch 'origin/main' into fix/obs-slot-from-expected-server 2026-11-21 15:35:42 -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 Fable 5.2 e9c8e464f4 ci(spec): a published spec states its exhausted bounds
docs/spec/README.md gains an Exhausted bounds table: one row per spec with
a configuration TLC explored completely, its bounds, its distinct state
count and what the model leaves out. internal/invcheck checks every row
(the spec and configuration exist, no cell is empty) and that every spec
has a row or is in a list that only shrinks (21 today). Eight rows are
added from results the README already states; nothing was re-run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 15:30:00 -08:00
pingqiu 237151e769 test: validate fresh claim before comparing cut generations 2026-11-21 15:12:22 -08:00
pingqiuandClaude Opus 5.5 ab633d2032 authority: a replica's slot takes a fact only from the server its expected slot names
assembleVolumeTopology now ignores a fresh fact for a replica reported by
any server other than the one the expected slot names, so another host
cannot put its addresses or health into the assignment line of a replica
it does not host (its doc comment already said so). With no fact from
the expected server the slot stays a placeholder, as for a missing fact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:01:12 -08:00
pingqiuandClaude Opus 5.5 55bf4a8461 authority: test: a replica's slot takes a fact only from its expected server
Red on main: assembleVolumeTopology keys fresh facts by replica id from
whichever server reported them first, so another server's fact for r1
supplies r1's addresses and health.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:00:52 -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 51f9d95af6 test: preserve cut controls across HEAD claim at open 2026-11-21 14:57:57 -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
pingqiu 84b39f379b fix: replay plain seal during deferred authority startup 2026-11-21 14:14:31 -08:00