The release note for v1.0.0: the single-replica walstore-chunk volume is
the supported configuration (store layout, upgrade, durability and
start-up, cleaning, authentication, limits, what is not in the release,
operator rules, known limits), and replicated volumes are a preview with
their own note. Every flag, default, limit, exit status and refusal text
named here was checked against the release candidate's code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The failover text covered only a lost host. When only the primary's
holder stops, the guest is still running and its I/O waits and then fails
as described (or completes if the holder restarts first); either way the
guest is started on the new primary's host after a failover.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A standalone guest runs on the volume's primary host and goes down with
it, so the failover step is to start the guest on the new primary's host,
not to disconnect a controller first; the disconnect step is dropped. Both
measured timings stay as facts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Kernel defaults are 60 attempts (600 s / 10 s): about 600 s when the
holder's host refuses the connection, and some 13 minutes (60 x (10 s +
the ~3 s connect timeout)) when it is unreachable, marked derived. The
Kubernetes paragraph says the same instead of "up to 600 s".
- Each case names its deployment: a standalone guest connects over
loopback and meets the stopped-holder case and the disconnect step; the
unreachable-host case is a guest on another host, in v1 a Kubernetes pod.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with the guide's options (ctrl-loss-tmo 180, reconnect-delay 2,
fast_io_fail_tmo off): a stopped holder process refuses each attempt at
once, and a pending write fails with EIO after 181.5 s (90 attempts 2 s
apart); a powered-off or unreachable host answers nothing, each attempt
waits for the connect timeout (about 3 s), and the write fails after
464 s (kato + 90 x (2 s + connect timeout)). Linux bounds the retries by
count, not by time.
After a failover the guest's first step is nvme disconnect of the lost
primary's controller: its pending I/O then fails at once (EIO 1.5 s
after the disconnect) instead of after up to 464 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator guide says what to do when a snapshot answers head_conflict
(retry with the same name) and, in this release, when that retry answers
internal "not in HEAD after its commit" (retry once more): the data is
committed either way and the name exists only after a request succeeds. A
retry that names the snapshot at once is planned for 1.0.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The empty-snapshot test reads the named snapshot's own root from the
store: block 1 holds the write, block 2 (unwritten, same chunk) is zero.
- KNOWN DEFECT (v1, fixed in 1.0.1), pinned: a snapshot whose commit loses
to a genuine concurrent HEAD writer (an operator deleting snapshots
during it, more often than the commit's bounded retry) answers
head_conflict with HEAD's image and names unchanged; the immediate retry
commits the requeued data without the name (HEAD idle, position moved)
and answers "not in HEAD after its commit"; a further attempt names it.
When the retry is fixed, the test fails and is turned around.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every assignment to ownGen in layout_remote.go is listed with its function
and whether the same statement records the image (seen): the two commits
that change HEAD's image record it; the session begin, the abort and end of
a dead session or cleaning, and the cleaning's begin and end change only
HEAD's activity. A new own write fails the census until it is classified.
Undoing the empty-image fix, or adding an unclassified site, turns it red.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first snapshot of a volume never written names its empty image with a
commit of its own, which gives HEAD its first root. The commit recorded
only its own generation, so the view kept the rootless image. The next
HEAD write by anyone else (a snapshot delete, through the holder or the
store) then looked like an image change: the generation the engine sees
moved, and the next cut lost its commit with head_conflict; its retry
answered internal ("not in HEAD after its commit").
CommitPendingSnapshot now records the image it committed, as the cut's
commit does, so a later write that leaves the image in place does not move
the engine's generation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lost-reply tests now run through the executor's registered callbacks:
a proxy forwards every frame to the replica (which admits and acts on it)
and discards its replies, so the fence and the catch-up really fail at
the sender; the failure is forwarded and the healthy verdict that
follows heals the peer, and live traffic is acknowledged. A behind peer
(R < H) is not healed by the healthy verdict, heals only through a
catch-up's registered close (every block equal to the primary's), and
then takes live traffic. The census now covers every reference to the
session order in the adapter's production source (constructor binding
and each draw by case), with helper, alias and outside-a-case controls.
Each control is red against its mutant: no afterFence wiring, no
afterSessionClose wiring, no re-draw on failure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The replica takes a session's lineage when it admits it; the sender saw
only the exchange's result. A fence the replica admitted whose reply was
lost, or a recovery session whose close failed, left the replica above
the live session with no re-draw. The fence-complete and session-close
callbacks now re-draw the live session above the session on any outcome
(a completed recovery still advances the cursor and heals). A guard test
over the adapter's draw switch lists every command kind that draws a
session and what re-draws after it; the refresh's log line names the
session and the reason instead of 'after recovery='.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fence mints its own session from the peer's one session order; once
the replica acknowledges it, the replica holds the fence's lineage, above
the peer's earlier live session, and refuses every later barrier or ship
on that live session as stale. A rejoining replica already at the
primary's end (no recovery session, so no post-recovery refresh) was
never healed. The fence-complete callback now calls the same
RefreshLiveShipSessionAfter the recovery close uses, after the fence's
barrier was acknowledged and before the engine publishes healthy.
The replica's stale-refusal log lines now name their cause (a primary
listener, an epoch below the floor, no role yet, below the held lineage,
or the same lineage with another frontier hint).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A replica already at the primary's end is fenced at the peer's epoch with
a session the fence mints, above the live session drawn at the peer's
creation; the replica then holds the fence's lineage, and the engine's
healthy verdict, a barrier on the live session, is refused as stale:
the peer stays degraded. A second test fixes the order: a live session
re-drawn before the fence is acknowledged makes the replica refuse the
fence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The classification moves into .github/scripts/docs-only-scope.sh: it
writes git's NUL-delimited list to a file and reads it to the end, so no
pipe stops early and a writer's error cannot read as "no other file". A
failed git diff exits nonzero, and the step then runs the tests.
docs-only-scope-test.sh runs first in the step, against real commits:
docs only, docs and a test file, no file, a docs-like prefix, README, a
move out of docs, a docs deletion, 20000 docs files with one other file
last, an unknown revision (an error), and that test.yml applies the check
only to a pull request's process suite and gates all four process steps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pull request whose changed files are all under docs/ runs no product
code the process-level tests could exercise, yet waited about 55 minutes
for them. The process job now compares the merge commit with its base
parent; when every changed file is under docs/ it prints "skipped: docs
only (N files under docs/)" and skips the SeaweedFS fetch, the builds and
the named tests, so the required check still reports success. Pushes to
main always run them, as does any pull request with another changed file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Against the real master: a volume-delete refused with
snapshot_has_dependents has already reserved the volume, so workspace
show answers "workspace: volume is being deleted" (exit 1) and HEAD with
its snapshots is unchanged. The control, a delete refused before any
reservation (an established volume under a live lease), leaves show
answering the volume normally. The volume-lifecycle row cites it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A holder keeps serving for the rest of its lease during an outage, and
the restart barrier is a lower bound, so the outage paragraph states the
known lower bound of the guest's wait and that an outage longer than
ctrl-loss-tmo less the barrier can fail guest I/O, without a threshold
number.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run with exactly --ctrl-loss-tmo=180 --reconnect-delay=2 (no
fast_io_fail_tmo): the holder killed and started again 5 s later, a
pending write completed after 6.1 s with no error; the holder kept away,
the write failed with EIO after 181.5 s. The table is no longer marked
derived, not yet run. The failover time stays derived.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The ctrl-loss-tmo derivation shows its sum (re-grant, the start's grant
wait, the unit restart: about 100 s) and the table is marked derived,
not yet run.
- reconnect-delay is a retry interval.
- The blockmaster-outage sum: 20 s + the outage + 50 s, so more than about
110 s outlasts 180 s; the link names the restart text.
- After a failover the options do not redirect the controller: a
standalone guest reaches only its own host's loopback target, so it must
run on the new primary's host and connect there (how to tell which host).
- The standalone connect command carries the same options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator guide gains "Host connect settings": the nvme connect
options ctrl-loss-tmo, reconnect-delay and fast_io_fail_tmo, values
derived from the longest wait for a target to serve again (the re-grant
barrier, 65 s with default flags), what the guest sees with these values,
with the kernel defaults (up to 10 minutes) and with values too short
(I/O errors reach the filesystem), how a long blockmaster outage relates,
and that the CSI node connects with the kernel defaults, so a pod whose
holder does not return is recovered by recreating it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The extent-writer census also inspects declaration initializers and keys
each site by its receiver-qualified owner, with negative controls for a
package-level method-expression alias, a package-level closure and a
same-named method on another receiver. The paused-cycle test bounds its
entry and completion waits, and releases and joins the cycle (bounded)
on any failure before the store's cleanup; under an injected failure
while the cycle is paused it ends at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A flusher cycle that started before the owner armed the hold (the flusher
runs from open) could pass the entry check, pause, and then drain the
dirty map Recover filled after the hold. The hold is now checked under
store.mu with the dirty-map snapshot: Recover takes store.mu after the
hold is set, so such a cycle sees it (red locally without this: the
paused cycle advances the checkpoint 1 -> 2 before attach).
writeExtentUnlocked refuses while held and no layer is attached, so a
writer the census misses fails loudly. The census counts every reference
(calls, aliases, method expressions) per site, with negative controls.
Tests: the provider holds on create and open (walstore-chunk only); the
post-attach drain advances the checkpoint and a fetch of the chunk keeps
the now-local block. block-design.md's WAL lifecycle shows the hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a crash, Recover replays a synced write into the dirty map; the
flusher drained it to the extent before the chunk layer attached, so the
block was not marked local and the next fetch of its absent chunk
installed the snapshot's block over the acknowledged write.
The durable provider now holds the drain on a walstore-chunk store before
Recover (HoldExtentDrainUntilChunkLayer); every flusher drain, the stop's
included, does nothing while held; the replayed write stays in the WAL
and is served from the dirty map; attach releases the hold, so the first
drain marks it local. A held store takes no BASE. Writers of the extent
are enumerated by a guard test; INV-CHUNK-LOCAL-BEFORE-FETCH-001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A volume-delete refused with snapshot_has_dependents has already
reserved the volume: it does not serve again; delete or release the
restored volume, then rerun with the same request id.
- A sync-quorum volume gets its new primary about 30 to 35 s after its
host is lost with default flags (freshness window, then two probe
rounds of at most 2 s each).
- The ack profile change order: stop the replicated volumes, change both
flags, restart blockmaster, start the volumes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A synced write into an absent chunk, a crash, a reopen: the flusher
drains the replayed write to the extent before the chunk layer attaches,
so the block is not marked local and the next fetch of its chunk installs
the snapshot's block over it (reads 0x89, want 0xE9). Adds the owner's
hold call (HoldExtentDrainUntilChunkLayer, a no-op here) and the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A volume at the snapshot limit refuses every scheduled snapshot before
its cut, so the schedule would no longer publish the image. The scheduled
pass now runs its ordinary cut after a snapshot_limit refusal and still
records the refusal (status lastFailure snapshot_limit, then
snapshot_overdue).
Tests read the committed image back: after the refusals and the next cut,
and after the scheduled pass at the limit, the distinctive block written
while refused is in the image HEAD names. INV-SNAPK-HEAD-BOUND-001 names
the pre-check, the mapping, the scheduled cut and their tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- best-effort volumes and an ack-profile mismatch are held, not failed
over by themselves (best_effort_no_automatic_failover,
ack_profile_mismatch); blockmaster refuses an unknown
--launcher-replication-ack.
- Change the ack profile only with the replicated volumes stopped; a
primary assigned under another profile does not serve and says so.
- A volume created at run time and not in the cluster spec is served only
with the lifecycle loop on.
- volume-lifecycle: a delete under a live lease answers not_admitted
("deletion refused before persistence"); ordinary snapshots never refuse
a delete, a snapshot with dependents does (snapshot_has_dependents);
blockmaster has no same-host refusal for a forced move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A snapshot request on a volume already holding the maximum number of
snapshots ran its cut first and met the limit only at the commit. With new
data, the cut committed unnamed; with none, the cut's session stayed open
on HEAD. Either way HEAD moved, and the answer was 500 internal because
the HTTP mapping had no case for the limit or for a taken name.
SnapshotVolume now checks the count under the volume's snapshot lock,
before it names the cut or opens a session, so the refusal writes
nothing. The holder answers 409 snapshot_limit (new code) and 409
snapshot_exists, neither retryable. The in-commit check stays as the
backstop.
Tests: the snapshot past the limit through the real provider, chunk
control and HTTP route answers 409 snapshot_limit with HEAD unchanged
(generation, activity, root, position), with nothing new and with new data
waiting; the provider test changes from "the cut commits unnamed" to the
same; a volume-delete under a live lease against the real master answers
not_admitted with "deletion refused before persistence".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
restartedHolderRefresh decides only when the line it reads is this
replica's at exactly the ask's addresses, and builds ExpectCurrent from
that read, so a move between the tick's address check and this read
yields no refresh rather than one expecting the moved line.
The controller's same-ask dedupe compares the expected line: a refresh
refused because an earlier refresh moved the line is asked again against
the new line instead of being suppressed as a duplicate (red locally
without this: TestControllerReasksARefreshRefusedAfterTheLineMoved times
out waiting for the re-ask).
The host-level stale-refresh test now waits for the publication path's
own refusal of that ask (bounded), instead of a sleep. block-design.md's
authority diagram shows the conditional refresh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tick read the line twice: its address check, then the refresh, which
built its expectation from the second read while writing the ask's
(source) addresses. With a move between the reads the expectation names
the moved line and the publisher accepts it. After a real clean move, the
source's refresh must not be decided at all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The publisher refuses an endpoint refresh whose ExpectCurrent (replica,
epoch, and the addresses read) is no longer the volume's line, under its
lock, as it does for a conditional reassign. Both refresh producers name
the line they read: the topology controller's refreshAsk and the product
loop's restartedHolderRefresh. invariants.md: the Bound -> Bound refresh
guard and INV-AUTH-RESTART-REISSUE-001's sites and tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restarted source holder's refresh, built before the operator's clean
move to another host and applied after it, must not rewrite the moved
line (same replica, next epoch, target addresses) back to the source.
Adds ExpectedLine's addresses and the refresh's decided-against line as
fields, with tests at the publisher (the refresh is refused with
ErrExpectedLineMoved; one decided against the current line applies), the
controller (its refresh names the line it read), and the host (the stale
refresh through the normal publication path after a real clean move).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The control minted its line before the holder started, then ran one
product tick after the start. When the holder had already reported its
process by that tick, the unbound placement went through the controller,
which re-issued the line for that process, and the control passed. The
control now waits for the early line, checks that it names no process,
and runs no tick after the holder starts (the order the fixture used
before), so the holder refuses the line on every run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-WS-REVOKE-ACK-RETRY-001 was inserted inside Part A's M4 table; it
now sits in Part B beside INV-WS-REVOKE-ACK-001, and M4 Fenced ->
Drained, Acked states the retry guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real guard and the real master: the first ACK gets no answer, either
because its answer is lost after the master committed it, or because the
master's first HEAD read outlasts the guard's 5 s bound. The guard asks
again, its drain ends without error (exit 0, not 75), and the master
holds one ACK with the holder's identity, the stopped generation and the
HEAD position. On the parent commit (one attempt) both end with
DeadlineExceeded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>