- The old host returning after a forced move: the absence checks run only
while it is alive; it must exit 75 and log a refusal; a supervised
restart and a start on a fresh local root (a control: no stale root to
refuse) must do the same. The refusal text that the product never
prints is dropped.
- The same-host restart is the page's systemctl restart (SIGTERM, a start
within RestartSec); the crash restart is its own test. Both must serve
within 15 s, as s1/r1 at the same epoch.
- The barrier wait requires at least one barrier refusal, compares with
one second of log resolution, and requires the re-grant line.
- Too early: the exit reason assignment_timeout, and the same serving
predicate as the barrier wait.
- The planned hand-over runs the page's step 1 and reads a never-written
block as zero (a control).
- The lapsed-lease return must serve within its 30 s authority wait, as
s1/r1. Comments match the order of the revoke-without-ACK steps.
- Harness ports come from 10000-19999, below weed's range; sw-block output
can be captured to HANDOFF_CAPTURE_DIR for the fixtures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two procedure tests for a holder that returns after its lease ended but
before the re-grant barrier. Started 35 s after the stop (default flags),
the barrier passes within its 30 s authority wait: it must not serve while
its renewals are still refused for the barrier, then serves at the same
epoch. With --workspace-max-clock-skew 50s and a start 31 s after the
stop, its wait ends first: it does not serve and exits 75, and a
supervised restart that waits past the barrier serves at the same epoch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five tagged binary tests run the procedures of the volume lifecycle page
as written, on two blockvolume processes with server ids s1 and s2 that
share one blockmaster and one SeaweedFS: the planned hand-over to another
host, a same-host restart inside the lease, a return after a lapsed lease
started 65 s after the stop, a forced move with the old host returning,
and a revoke without an ACK followed by a forced move.
The harness takes N hosts (cluster spec nodes s1..sN); the checks that
read each step's output take the host and stay in the default-build
check file with the existing ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>