Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiu 7600be4e81 fix: preserve retained startup and planned-drain ownership 2026-11-22 01:01:28 -08:00
pingqiu e966deea38 fix: retain a newer foreign-holder fence across stale replay 2026-11-22 01:01:17 -08:00
pingqiu 5d28c43504 test: reject foreign server identity across expired lease regrant 2026-11-22 00:59:46 -08:00
pingqiu 58839e5c2d fix: read committed holder identity without waiting for authority writes 2026-11-22 00:58:47 -08:00
pingqiu 85139083d6 test: schedule planned-drain expiry at provider outcome seam 2026-11-22 00:58:15 -08:00
pingqiu d2525156cc test: cover foreign-holder fencing and carried lease identity 2026-11-22 00:57:04 -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
pingqiu 14aaa35e1f test: provide explicit server identities in existing host fixtures 2026-11-22 00:56:08 -08:00
pingqiu e08888aac1 test: expose retained timeout and planned-drain startup races 2026-11-22 00:53:35 -08:00
pingqiu 114fe6b74c fix: require server identity for assignment adoption and workspace leases 2026-11-22 00:52:25 -08:00
pingqiu 7ea0eb5132 test: retain nil pre-grant workspace snapshot in refusal control 2026-11-22 00:51:13 -08:00
pingqiu 61695b30ef test: compare optional lease snapshots without dereferencing nil 2026-11-22 00:50:55 -08:00
pingqiu b31577dea0 test: refuse lease grants renewals and regrants for a foreign server 2026-11-22 00:50:43 -08:00
pingqiu 5ca0611bd2 test: reject moved r1 assignments on the restarted old server 2026-11-22 00:49:03 -08:00
pingqiu 92c886c129 fix: name observed assignment fields consistently 2026-11-22 00:47:14 -08:00
pingqiu ad7b9dad40 fix: distinguish observed assignment from replica fence epoch 2026-11-22 00:46:58 -08:00
pingqiu 3daa1d2162 fix: compare supersede exits with latest own authority lineage 2026-11-22 00:46:24 -08:00
pingqiu ef9bcb0032 test: expose stale supersede and unconfirmed ACK exit causes 2026-11-22 00:44:27 -08:00
pingqiu 1943f93ce6 test: observe supersede fact for never-assigned replica 2026-11-22 00:37:54 -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
pingqiu 6012309133 test: use replica identity for planned revoke witness 2026-11-22 00:34:41 -08:00
pingqiu cb6ad61c81 test: prove successful transient exits from captured systemd journal identities 2026-11-22 00:29:32 -08:00
pingqiu 99781fe337 test: use the supported systemd kill-who option in WSL qualification 2026-11-22 00:26:25 -08:00
pingqiu cf019bfb3f test: preserve failed systemd runtime state and acknowledged record hash 2026-11-22 00:25:21 -08:00
pingqiu 5646cad928 fix: keep signal and acknowledged revoke status immutable during cleanup 2026-11-22 00:17:48 -08:00
pingqiu 741cdbfbc9 fix: deliver the first process exit through one immutable buffered slot 2026-11-22 00:17:12 -08:00
pingqiu 59a6767e2e test: qualify no-retry exit from a real other-replica master fact 2026-11-22 00:14:10 -08:00
pingqiu 103b944c03 test: compare NVMe data frame lengths in wire units 2026-11-22 00:12:34 -08:00
pingqiu b257486f3e test: verify flushed NVMe records before and after supervised holder return 2026-11-22 00:12:21 -08:00
pingqiu 41dfb5ec90 docs: trace workspace process exits and show supervisor restart lifecycle 2026-11-22 00:06:21 -08:00
pingqiu 0d564ec213 test: require recorded revoke ACK and terminal systemd success after planned stop 2026-11-22 00:04:03 -08:00
pingqiu 2170b6449a test: qualify systemd with the shipped workspace restart policy 2026-11-22 00:02:58 -08:00
pingqiu d060e9ab3f fix: retain sealed startup and atomically choose the current recovery exit 2026-11-21 23:59:38 -08:00
pingqiu d638377ee6 test: retain an assigned sealed restart for exact seal replay 2026-11-21 23:55:52 -08:00
pingqiu 8b4fd25776 fix: preserve acknowledged planned-stop status and witness stuck cleanup exit 2026-11-21 23:53:57 -08:00
pingqiu 5d730c1ecc fix: latch exhausted workspace startup and bound process retry exit 2026-11-21 23:52:54 -08:00
pingqiu 42e8491478 test: expose the exhausted chunk assignment wait to its process owner 2026-11-21 23:49:16 -08:00
pingqiu 45e24335da test: anchor lapse fixture to master expiry and captured status 2026-11-21 23:42:00 -08:00
pingqiu f5eab654a5 test: reproduce expired startup under real systemd restart policy 2026-11-21 23:40:19 -08:00
pingqiuandClaude Fable 5.2 2ea860c14d docs: leave the blockmaster config comment to the change that edits deploy files
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:22:05 -08:00
pingqiu 926939f1cd Merge remote-tracking branch 'origin/main' into docs/volume-lifecycle 2026-11-21 23:21:48 -08:00
pingqiuandClaude Fable 5.2 b24c815245 docs: volume lifecycle for a standalone workspace volume
One page for the operator: the three records to look at (lease, HEAD,
revoke ACK), the planned hand-over step by step with the shipped
commands, the same-host case, what to do after a crash or a lapsed
lease, the forced move, and a symptom table with the exact messages.
Corrects stale sentences in the README, the standalone guide, the
workspace protocol note and the blockmaster config comment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 23:21:48 -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