blockmaster holds a best-effort volume on a lost primary; only the
operator's forced failover moves it, which may lose the writes
acknowledged last.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--chunk-capture-interval defaults to 0 (no timer); when set it must be at
least 5 minutes. The design text still said 15 minutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A best-effort write waits for no replica, so a replica whose connection
dropped can keep showing healthy while it misses writes; use sync-quorum
when the replicas must hold the data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A rerun finds the chunks a timed-out request already uploaded and sends
only the rest. With --host-limit-dir set, uploads are paced at about
16 MiB/s per volume and charged for present chunks too, so more than about
4.7 GiB changed cannot finish within 5 minutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A snapshot takes about 2 s per GiB changed since the last cut; the CLI
waits 60 s by default and the server at most 5 minutes per request.
State the answer codes of a timed-out request, what it leaves, and that a
rerun with the same name is the next step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Durability states the recovery point: a stopped volume keeps what it
acknowledged; a lost host comes back from its last cut, which with the
defaults can be up to a day old; --chunk-capture-interval (at least 5
minutes) or a snapshot before risky work makes it newer.
- Kubernetes is an alpha in v1.0.0 (lab clusters, not production; no
backup, snapshot or restore claimed), and its CSI node's plain connect
holds a pod's I/O about 600 s, or some 13 minutes for a powered-off node.
- The SeaweedFS filer is a single point of availability for cuts,
snapshots and moves.
- The connect waits say which case each is for: 181 s for a stopped
holder with its host up (the standalone guest), 464 s for a powered-off
host and a guest on another host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A refused restore answers not_admitted after a misleading "layout store
not ready:" prefix and leaves the target name bound (target_exists):
restore under another name.
- A delete refused with snapshot_has_dependents has already reserved the
volume: it does not serve again.
- A volume created at run time and not in the cluster spec is served only
with --lifecycle-product-loop-interval set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
v1.0.1 is planned to support RF3 sync-quorum installed on hosts (writes
continue through one replica's fault, which returns by itself) and RF2
sync-quorum with its limit (no acknowledged write lost, automatic failover,
writes stop while either replica is out); sync-all and Kubernetes RF3 stay a
preview; a partitioned old primary may serve older reads until its lease
ends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a high ephemeral lower bound the weed pair range ran to 40000, so one
shard's HTTP slice (20000-29999 for shards 1-2, 30000+ for shards 3-4)
could meet another shard's gRPC ports (HTTP + 10000). weedPairRange caps
the HTTP range at 30000, below every gRPC port, and below the ephemeral
range less 10000 when that leaves room (the Linux default, 32768, still
gives 20000-22767). TestWeedPairSlicesNeverMeetAcrossShards checks every
pair of shards' HTTP and gRPC slices for ephemeral bounds from 28000 to
61000; with the old cap it fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The process-level job ran its 44 named tests in sequence, about 53 min of
the CI time. They now run in 4 parallel shards in the same job, so the
required check keeps its name and its gate: shard-named-tests.py splits
the names file by each test's last measured time
(.github/process-level-seconds.txt; longest first into the least-loaded
shard; about 787 s each), each shard runs run-named-tests.sh with its own
slice of the test port ranges (SWBLOCK_TEST_PORT_SHARD) and its own TMPDIR,
and required-tests-check.py then judges every named test from all the
shards' events and statuses. shard-named-tests-test.py runs in the gate's
self-test step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several process-level test binaries can now run in parallel on one host:
with SWBLOCK_TEST_PORT_SHARD=k and SWBLOCK_TEST_PORT_SHARDS=n, the harness's
random port pickers (handoffAddress, the head-size pickers, and the weed
pair picker's usable range) draw only from the k-th of n equal slices, so
two shards never pick the same port. Unset, the whole range, as before.
TestTestPortSpanGivesEachShardItsOwnSlice covers the slices and the
fallbacks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v1.0 is two designs: the single-replica walstore-chunk volume with the
object store (snapshots, restore, moves, object-store copy) and replicated
volumes on local stores without any of those. walstore-chunk refuses
replication at start and on any assignment with replica slots, because a
chunk snapshot takes its position from the local log, which replicas may
not hold. The preview section and the release note say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Acknowledged data is kept in the acknowledging modes only; best-effort
can lose the writes acknowledged last in a failover.
- Wipe and add again is written out (stop the unit, clear its
--durable-root, start it again; the replica rebuilds empty) and marked
as not a tested procedure in this preview; an interrupted re-add needs
another wipe.
- --wal-retention-lsns does not help in this release.
- Kubernetes has no remedy for a left-out replica in this preview.
- The release note says no store format change is planned for the
release that lifts the preview, as a plan, not a guarantee.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator guide gains "Replicated volumes (preview)", the standalone
page's replicated section points to it, and the release notes gain a
note. The limits, in operator terms: under a writing guest a replica that
misses writes (restarted, or fenced by a failover) is not caught up by
itself and must be wiped and re-added; a durability shortfall reaches the
guest as an immediate I/O error, not a wait; sync-all refuses writes while
any replica is down; a target that is no longer the primary does not fail
the guest over to another path (no multipath in v1.0); the same holds on
Kubernetes RF3. Acknowledged writes read back intact throughout.
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 harness checks each weed port pair free and releases it before weed
binds it, reserving it only inside the test process. On a runner host shared
with another job, a port can be taken in between; the master then cannot
reach the volume server's gRPC port and the cluster never accepts a write,
failing the test as an environment flake.
A start whose probe never accepts a write is now stopped (each process's log
tail logged) and the cluster is started again on fresh ports in a
subdirectory of the same root, up to 3 starts. A cluster with a
fault-injection front keeps one start.
TestWeedStartAgainOnFreshPortsWhenAPortIsTaken holds the first start's
volume gRPC port with a plain HTTP server (as another job's listener): the
first start fails as the CI runs did, and the second accepts a write. With
one start only, the test fails.
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>