V1-SPEC r2.53. The rung polls the master's view of every source volume's
replica each second (GetVolumeStatus) and records each span the master does
not observe it, epoch changes and frontend-not-ready polls; it counts the
master's per-slot "heartbeat superseded" lines per volume. Pass rule: zero
slot expiries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
V1-SPEC r2.49/r2.52. Opt-in (F1_RUN=1, a large test, never in CI): N
blockvolume processes under ONE server id, each its own replica id and
ports, snapshotted at the same instant per round under write load; every
snapshot restored and verified (ledger exact, load a prefix); the JSON
report carries cut time and barrier pause, client write p50/p99/max inside
and outside snapshot windows, request-to-commit time, host-slot waits,
restore time, chunks/bytes uploaded, filer entries per round and RSS. The
procedure harness's bvHost gains optional server and replica ids.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ladder's blockvolumes run with --chunk-capture-interval 0 and
--chunk-snapshot-schedule off, so A2 counts only its own snapshot's
uploads. A1, A2 and A4 also read a block in an untouched chunk and the
volume's last block through the restore. A3 runs three snapshots that start
after 0, 40 and 120 of their writes, logs the prefix each holds, and fails
as inconclusive if every one landed before or after all its writes. The
header says an A test never deletes a snapshot or runs GC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A3: blocks written one after another while snapshot 2 runs; its restore
holds a prefix of those writes (one point in time) and snapshot 3 holds
them all. A4: one block holds A, B, then A again with a snapshot after
each; the three restores read A, B, A.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A1: one block written, one snapshot, the snapshot read back block by
block holds that block and zeros around it. A2: an incremental snapshot
holds the volume at its point, the first snapshot is unchanged, and the
second snapshot uploads only the two chunks that changed. A snapshot is
read through the product's own path, a restore into a new volume, so the
tests do not depend on the chunk format. The procedure harness gains
restore-target volumes in the cluster spec, each on a node of its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A line starting with "<<<<<<< " or ">>>>>>> ", or a line that is exactly
"=======", in docs/design/invariants.md or the lists invcheck reads fails
the test with its file and line. The marker check is pinned on a fixture
that holds a conflicted region and two look-alikes it must not report.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lock directory and its parent are chmod'ed only when this call's own
Mkdir created them, so an existing or concurrently created directory keeps
its mode; an existing lock path that is not a directory refuses (Lstat), as
the constructor did before. The invariant row links the mode tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new helper treats any existing lock path as the directory; the old
constructor refused a non-directory. Controls: an existing parent and an
existing lock directory keep their modes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A missing /run/sw-block is created 0755 and the locks directory 0700, with
the modes set explicitly (the umask cannot narrow them); existing
directories are left alone. The cure line also names the parent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
V1-SPEC r2.45 (1): MkdirAll(locks, 0700) also makes a missing parent
/run/sw-block 0700; created by root, it keeps the unit's user out even after
the locks directory is chowned. The tmpfiles.d layout is parent 0755,
locks 0700.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test runner that is itself a systemd service (the CI runner unit) passes
its INVOCATION_ID to every child, and blockvolume rightly refuses
--volume-lock-dir-test-only under systemd. Every subprocess start that
passes the flag now builds the child's environment without INVOCATION_ID
(one helper per test package). The product rule is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The rolled-back copy makes no HEAD CAS attempt (counted at the remote,
not inferred from PUTs).
- Control: an exact copy passes the preliminary HEAD read; HEAD then
advances at the same epoch and holder before the claim's own read; the
claim-image recheck refuses it as stale, with no CAS.
- The refused second provider leaves its storage root empty.
- The --help capture registers stderr restoration and pipe closes first,
closes the writer before joining the reader, and bounds the join.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The lock directory is created (0700) when missing; only a directory or
lock file that cannot be created or opened refuses, with the cure
(install the tmpfiles.d entry, or chown the directory and its lock files
to the unit's user).
- The lock file is opened read-only (an existing file first, created 0644
only when missing), so a lock file another user created stays lockable;
it is never unlinked, and the next owner locks the same file.
- A stale-root startup end carries its cure into the final exit line:
exiting status=78 reason=superseded cure="...".
- Tests: a cut's remote_lsn is locally durable at its HEAD CAS, and the
root's crash image at the CAS reattaches and serves; the rolled-back copy
makes no claim or PUT, admits no I/O, keeps its data and durable LSN; an
exact copy at HEAD attaches; a read-only lock file is taken.
- Invariants: INV-WS-ONE-PROCESS-PER-HOST-001 and its M4 edge; the
rollback row names its test file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>