ops chunk snapshots prints a JSON array of {name, root, dependents} in
name order, and a listed snapshot is published; the list carries no state
or cut position. The ladders now decode that array and check identity by
name and root: three snapshots with roots of their own, s4 listed only
once published and then unchanged, a retried snapshot keeping its root.
Contents stay checked by the restores that follow. A snapshot of a restore
target that is not fully local is now taken, and a restore from it is
refused with restore_source_not_own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fixture read <chunk-path>/<name>/HEAD and counted top-level segments
in it, and counted <name>/keys: names the layout no longer writes (a 404,
or a silent 0). It now resolves the store directory <name>-<id8> from
blockmaster's record, decodes HEAD, counts the segments of its current
root, and counts the volume's pool objects.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
startHandoffEnvWith imported each target as an ordinary volume record, so
the first restore into it was refused as target_exists (bound to another
restore request). Targets now carry placement only and their restore
creates them; startHandoffEnvVolumes keeps the old form for the tests that
start their extra volumes without a restore. Assertions are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ops chunk show and snapshots built as argument slices get --master;
the guard now also checks []string{"ops", ...} literals.
- A returning old host after a forced move exits 78 with reason=moved
(the master's typed MOVED refusal), as the product documents.
- TestProcedureStartTooEarlyExitsAndARestartServes is retired: a start
before the barrier now waits through it and is re-granted, which
TestProcedureStartInsideTheBarrierWaitIsReGranted covers.
- ops chunk gc is gone: D4 deletes through the holder, whose cleaning
pass removes exactly the deleted snapshot's chunks from the pool; the
headroom test asserts the source snapshot of a waiting restore target
cannot be deleted and keeps its chunks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v1 has no background fill: hydrate reads one block of every chunk, then
requires none absent, and the killed-mid-fill test drives its fill with
a background reader. The guard also checks the harness's run calls, and
the show and snapshot-delete calls it found get --master.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guard runs every literal `sw-block ops ...` call in cmd/blockvolume's
tests through the CLI's own argument handling, so a call the CLI refuses
fails CI instead of a lab run. The calls it found are brought to the
current CLI: --master on restore and snapshot commands, the removed
restore driver and fork replaced or dropped, and the killed-mid-fill
test converted to background hydration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review amendments (no product change):
- storage: both refusal controls read the chunk's blocks from the extent
file before the refused fill and after it, and require them unchanged;
a fill that installs damaged bytes and then refuses is now red (it left
absent and localBlocks untouched, so the old assertions passed).
- chunkstore cut test: the child's stdout is read to EOF, so an upload
begun during the delay or the kill is counted; CUT-ERR at any point
fails the round; the child must have died by SIGKILL; objects 0..last
(at least the first four) are validated every round (an object never
begun must be absent) and all of them are completed by a new session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The master test's freshness window is one second; a target report one
second old had already expired, so no report was found at its endpoints.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guard on hostConfig's LinesNameTheirProcess, the refusal control also
checks nothing is recorded, and the M3 diagram and table state the
adoption guard (the row maps to M2 refresh and M3 adoption).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every read of a pool object already verifies its bytes against the name
twice: the layout reader (ErrCorrupt -> ErrRemoteDamaged) and the
engine's fill (sha256 and size against the HEAD ref). The engine's
refusal was an untyped string; it is now ErrChunkContentMismatch, on the
read-miss fill and on the cut COW fill alike.
Controls:
- storage: a seeded chunk whose bytes are flipped, truncated or extended
is refused with ErrChunkContentMismatch on a guest read miss and on
HydrateAll; nothing is served or installed, and once the remote serves
the named bytes the same reads return HEAD's data.
- durable, end to end over the real layout remote: a chunk captured to
the pool, its blob damaged under the filer entry, a fresh replica
attached from HEAD: the guest read fails with a typed error and never
returns the stored bytes; restored, it reads HEAD's data.
- chunkstore (real filer, chunkstore_integration): a child uploading
pool objects through EnsureObject is SIGKILLed at random points over
many rounds; each object it began is absent or holds exactly the bytes
its name hashes, and a new session completes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The incarnation source looks up the slot at the ask's endpoints, never
the same replica reported by another host. A production volume adopts
no line that names no process; the target's first report re-issues it
once for that process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workspace record writer copies the line's incarnation, so a lease or
journal write no longer erases it before a reload; a queued refresh for
one process is replaced when another reports at the same address; the
RefreshEndpoint transition names the restart case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A heal, a planned or workspace move or an operator's request names no
incarnation; the publisher records the one the target reports now, so
the promoted process's first report re-issues nothing. The volume's
refusal of a line issued for another process now comes before anything
of it is recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A primary restarted at the same epoch and address started its sessions
at 1 while each replica held the dead process's higher one, so every
session was refused as older. The line now records the process it was
issued for (durable); a current primary reporting another process is
re-issued its line at the next endpoint version, and a primary adopts no
line issued for another process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A volume re-created under the same name is another volume, so a commit's
reference is own only when both the owner's name and id are this
volume's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restore target keeps or drops its source's references and never gains
one, so a dependency stays one step deep: RunCommit refuses a manifest
that holds another volume's chunk at an index where the previous manifest
did not hold that same chunk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lane-routing harness gets a store, and the ingress version test
starts from a replica that holds 1..119, so their live entries arrive at
the next LSN.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its image could not be brought up to date, and the latch clears only on a
completed rebuild: a probe or fencing round answer from it is never
ready, so no promotion (automatic, the operator's failover or a planned
move, each requiring the target's ready answer) can make it primary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A replica removed and added back with its older store cannot be rebuilt
on v1 (its BASE is still installed). The store now returns the typed
storage.ErrRebuildRetainedBase, the replica listener keeps that refusal
until a rebuild completes, and the volume host reports it on its
heartbeat slot as rebuild_retained_base (ineligible), naming the replica.
The operator guide gives the recovery: wipe the data directory, re-add.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live-ship and recovery session ids came from two process-wide counters;
once the live counter ran ahead, the replica refused every recovery as
older. Each replica now has one order, kept by the volume across its
peers and executors, and every session toward it takes the next id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recovery begins with BeginEpochRecovery, so the primary's live
session stays admissible and only the invalid epoch table can refuse its
frames; a recovery begun and ended is the control. The test is its own
package so its sessions do not reorder another test's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>