Commit Graph
2495 Commits
Author SHA1 Message Date
pingqiu 38aa1f529b Merge #422: Part T, terms bound to code 2026-11-22 05:23:07 -08:00
Ping Qiu 06067e2271 Merge pull request #424 from seaweedfs/train/20261122-21
Train 21: hostlimit urgent-pending + launch checks, standalone planned handover test
2026-11-22 04:30:44 -08:00
pingqiuandClaude Opus 5.5 ef3d1d03f6 docs: Part T, the refusal to adopt is the holder safety rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:10:28 -08:00
pingqiuandClaude Opus 5.5 0d4a511954 docs: Part T, the line owner is carried in the published line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:55:00 -08:00
pingqiuandClaude Opus 5.5 e31d2fb8a9 docs: Part T, the line owner is decided by Host.workspaceLineOwner (on #423)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:32:38 -08:00
pingqiu 44081b34b4 Merge #406: test the documented standalone planned handover 2026-11-22 03:29:24 -08:00
pingqiu 75b0bc731d Merge #384: hostlimit background cuts wait while urgent work is pending; launch checks
# Conflicts:
#	docs/design/invariants.md
2026-11-22 03:29:24 -08:00
Ping Qiu efa42fe5ec Merge pull request #417 from seaweedfs/train/20261122-20
Train 20: v3 STUB promotion, map prepare prior-live guard, per-package CI limit
2026-11-22 03:28:36 -08:00
pingqiuandClaude Opus 5.5 9efdea867d docs: Part T, serving is decided by StorageBackend.AdmitsIO (on #410)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:25:15 -08:00
pingqiuandClaude Opus 5.5 7cf8c8c961 docs: Part T, the HEAD fence after startup exits on #410
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:11:03 -08:00
pingqiuandClaude Opus 5.5 6520134446 docs: Part T binds shared terms to one deciding function each
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:09:23 -08:00
pingqiu 7c6fbf8a3b Merge #413: give a touched heavy package 20 minutes 2026-11-22 01:59:26 -08:00
pingqiu 649ad323dc Merge #408: v3 map prepare refuses a prior root released before its live-set snapshot
# Conflicts:
#	docs/design/invariants.md
2026-11-22 01:59:26 -08:00
pingqiu d1645e0833 Merge #405: promote 15 format-v3 rows whose statements a default test asserts 2026-11-22 01:59:06 -08:00
pingqiu bd1c8bdb1d Merge remote-tracking branch 'origin/main' into feat/host-urgent-pending
# Conflicts:
#	docs/design/invariants.md
2026-11-22 01:32:40 -08:00
Ping QiuandClaude Opus 5.5 d38f816700 ci: give a touched heavy package 20 minutes
core/storage alone took 602 s under -short on the shared runner on main,
past the 10 minute per-package limit, so a PR that touches it fails on
the limit, not on a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:32:19 -08:00
pingqiuandClaude Opus 5.5 8815c82098 test: the old process exits within the 30 s lease; a clean move without the ACK is refused
The planned hand-over waits 30 s for the old blockvolume's own exit, the
lease bound the lifecycle chapter states.

TestStandaloneCleanMoveWithoutTheACKIsRefused makes the chapter's
negative check deterministic: the volume is sealed, its blockvolume is
killed (a signal sends no ACK), the lease is revoked with the sealed
generation, and the clean move exits 1 with the documented refusal while
workspace show keeps no ACK. Its output is captured into the fixtures and
read by the shared checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:07:24 -08:00
pingqiuandClaude Opus 5.5 027e4da2f0 test: the documented standalone planned hand-over to the same host, end to end
Runs the lifecycle chapter's commands in order against real blockmaster,
blockvolume, sw-block and SeaweedFS on loopback: cluster spec and
lifecycle store, adopt, write and flush a block over NVMe/TCP, plain
detach, revoke with the sealed generation, the old process acknowledges
and exits 0 by itself, show the ACK, clean move to the same host (and its
replay), reopen at the new epoch, and the block reads back unchanged.

The checks that read each step's output are shared with a default-build
test that runs them on output captured from the real binaries
(testdata/planned-handoff), each also refusing another step's output.
The NVMe/TCP host runs in the test process: no root, no nvme_tcp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:56:21 -08:00
pingqiuandClaude Opus 5.5 f82e56d740 invariants: MAP-PRIOR-LIVE note from the model: the harmful pair, the outage until the page is rewritten, recovery today
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:37:05 -08:00
pingqiuandClaude Opus 5.5 4007c3dfa2 invariants: M1 Part A trace of the map prepare refusal (Serving -> Serving (map prepare refused)); row names the transitions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:37:05 -08:00
pingqiuandClaude Opus 5.5 30039c4b01 storage: a map prepare refuses a prior root released before its live-set snapshot
A preparer (the flusher's checkpoint, the chunk layer's captured-map
publication, BASE complete) captures prior under descMu and prepares later.
If, in between, another root is published and a second publication writes
it into the other slot, prior is released: its extents are free in the live
snapshot, yet the prepare reused prior's page references for unchanged
pages and could allocate its own page or root into the same extent. The
candidate then names a page whose bytes no longer match its hash, and the
next open of the volume fails (open validates only the newest slot's map).

prepareLockedV3 now checks prior's liveness in the same liveMu section that
snapshots the live set (liveSnapshotWithPriorV3) and refuses a released
prior with mapCoverageRefusal("prior_released") before the latching defer;
the caller's next cycle prepares from the current root. The refusal is
counted in ChunkMapStats.PriorReleased. From the snapshot on, nothing else
allocates while m.mu is held and the candidate pins every page it
references, the reused ones included, until it is published or superseded.

INV-WAL-V3-MAP-PRIOR-LIVE-001 (Part B: 304 rows, 218 ACTIVE).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:36:46 -08:00
pingqiuandClaude Fable 5.2 86b421f070 docs: say which test asserts the catch-up damage row in the default suite
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:19:49 -08:00
pingqiu 4134429077 Merge remote-tracking branch 'origin/main' into docs/invariants-v3-stub-promotion 2026-11-21 23:17:27 -08:00
Ping Qiu ea276b450a Merge pull request #404 from seaweedfs/train/20261122-19
train 19: required setup docs, reachability words
2026-11-21 23:16:58 -08:00
pingqiuandClaude Fable 5.2 5d3cd7995e docs: two format-v3 statements say what the code does
The lock-order row claimed the store lock is always released before slot
I/O; recovery, BASE transitions, the checkpoint publication and rollovers
hold it on purpose to exclude writers. The record-refusal row claimed CRC
and footer are refused before a payload is allocated; the scanner must
read a record to check them, after its size is bounded. Both rows stay
STUB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:15:26 -08:00
pingqiu 8abbae408f test: scaffold real-binary standalone handover harness 2026-11-21 23:10:20 -08:00
pingqiuandClaude Fable 5.2 66b6929923 docs: promote 15 format-v3 rows whose statements a default test asserts
Each promoted row runs in production by default and every clause of its
statement is asserted by a named test in the default suite. 27 rows stay
STUB; a note groups them by reason (a clause has no asserting test, the
tests only exercise the path, or the asserting test needs a build tag).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:00:17 -08:00
pingqiu 648b36c8d3 Merge PR #402 2026-11-21 22:43:43 -08:00
pingqiu 70f196e286 Merge PR #398 2026-11-21 22:43:43 -08:00
pingqiuandClaude Fable 5.2 636bc98747 docs: invariants say which v3 paths production reaches
Production creates and opens format-v3 stores, so most 'dark', 'not yet
wired' and 'until activation' phrases in the contract were false. Each
phrase was checked against its production caller and now says what is
true: reachable by default, reachable only with a named flag, or no
production caller. Row status is unchanged. Also cites two merged tests
on INV-CUT-STAGED-REUSE-001.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 22:36:28 -08:00
Ping Qiu 7f4f61d9ce Merge pull request #400 from seaweedfs/train/20261122-18
train 18: same-holder re-grant after lease expiry
2026-11-21 22:14:24 -08:00
pingqiuandClaude Fable 5.2 f287e281c2 docs: NVMe/TCP device lookup needs native NVMe multipath
The walkthrough's lookup and the CSI node plugin resolve the namespace
under /sys/class/nvme-subsystem, which holds it only with nvme_core
multipath=Y. Say so, with the check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 22:02:34 -08:00
pingqiuandClaude Opus 5.5 1bec4f79c9 volume: a refusal for held host cut slots has its own code, host_slot_busy
The chunk control API answers a cut, snapshot or detach that host
admission refused because every slot is held (or urgent work is
pending) with 503 host_slot_busy, retryable, so a caller resends on
exactly that refusal without reading messages; other capture refusals,
a plain host busy included, keep capture_refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:58:15 -08:00
pingqiu df9599524b Merge PR #395 2026-11-21 21:41:03 -08:00
pingqiu 53b41f808f Merge commit '626fd811' into fix/oss-holder-resume
# Conflicts:
#	docs/design/agent-workspace-design.md
#	docs/design/invariants.md
#	docs/workspace-lease.md
2026-11-21 21:29:27 -08:00
pingqiu 0d7808c9ad test: bound regrant durability handshakes and clarify renewal scope 2026-11-21 21:23:47 -08:00
pingqiuandClaude Fable 5.2 70fa2dee00 docs: required setup, make the volume known to blockmaster
A blockvolume that blockmaster does not know serves nothing and says
little. The standalone document now states the topology file and the
matching flags as required steps, how to check before and after, and
which log line means which missing step.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 21:23:41 -08:00
Ping Qiu 626fd811a4 Merge pull request #394 from seaweedfs/train/20261122-17
train 17: same-host clean move of a sealed HEAD
2026-11-21 21:22:23 -08:00
pingqiu 742d248a78 test: preserve persisted regrant skew across a smaller restart setting 2026-11-21 21:12:08 -08:00
pingqiu 5af76730c7 test: require sealed regrant return to preserve proof and refuse guest IO 2026-11-21 21:05:38 -08:00
pingqiu 7e8084c7a4 fix: keep expired renewal nonblocking behind held authority writes 2026-11-21 21:02:35 -08:00
pingqiu bc43c66786 docs: specify expired-holder regrant behind the shared MAX barrier 2026-11-21 20:59:09 -08:00
pingqiu db9f8ff5f2 test: witness regrant durability force exclusion and empty-root restore 2026-11-21 20:57:20 -08:00
pingqiu 823a7b9e2d fix: durably regrant expired unchanged owners after forced-move barrier 2026-11-21 20:56:09 -08:00
pingqiu 1a623b38a4 Merge remote-tracking branch 'origin/main' into fix/oss-holder-resume 2026-11-21 20:55:33 -08:00
pingqiu d7b236de69 Merge PR #392
# Conflicts:
#	docs/design/invariants.md
2026-11-21 20:48:59 -08:00
Ping Qiu e051d1b5f7 Merge pull request #393 from seaweedfs/train/20261122-16
train 16: planned hand-over CLI, last long invariant row
2026-11-21 20:43:24 -08:00
pingqiu 612b3276c0 docs: recount invariant ledger after merging current main 2026-11-21 20:34:04 -08:00
pingqiu 7be16b8cb8 Merge remote-tracking branch 'origin/main' into fix/oss-same-host-clean-move 2026-11-21 20:33:52 -08:00
pingqiu c1033cb8af test: pin regrant to the existing later forced-move skew barrier 2026-11-21 20:10:25 -08:00