MaxNewVolumeBytes is 256 GiB (65,536 chunks of 4 MiB), derived from the
measured number of chunks a commit checks within one 2 s update of HEAD,
halved and rounded down. The release note states the limit, why, that a
restore target takes its source's size, and that it is planned to be
removed in 1.0.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three servers' port pairs were picked together before the master
started, and the filer binds its pair seconds later; a listener that
appears in between (another job's weed on the same host) took the filer's
gRPC port. Each pair is now picked right before its server starts. A
cluster with a fault-injection filer front gets the same fresh-ports
retry: its front is built again on each start's ports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CreateVolume and the cluster-spec start check refuse a new volume above
geometry.MaxNewVolumeBytes with ErrVolumeTooLarge, naming the size and the
maximum, before any record or store exists. The check is at creation
only: a volume that already exists keeps opening under the uint32-LBA
limit. The value is a placeholder (MaxVolumeBytes) until it is set from
the measured capacity limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scheduled snapshot or periodic cut refused because an earlier HEAD
commit's outcome is unresolved logged only the raw error. Every later
cut, snapshot and detach of the volume is refused until that settles,
so the line now names the state (PendingUnresolved), its cause and the
cure, once per attempt, never per write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests and ledger only; the product code is byte-identical.
- The cap oracle is the literal 32 (a 32 -> 64 change of the constant
fails it: 64 in flight).
- Every wait is bounded, and each control's cleanup opens its gates,
cancels and joins the commit, so a failing control returns promptly.
- The cancel control holds every admitted lookup past the cancellation
until the test opens their exit: a commit that returns before that did
not join them (a removed-join mutant fails), HEAD takes no update, and
a keep-admitting mutant starts 502 lookups.
- The order control holds the earlier lookup until the later failure has
fully returned and nothing else is in flight (a first-to-finish mutant
fails both ways).
- invariants.md: the wait rows name the caller-held LayoutRemote.mu
(CASHead, CommitPendingSnapshot).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests only, plus the ledger; the product code is unchanged.
- TestCommitLookupsNeverExceedTheCap: every lookup is held until the cap
is reached; no 33rd starts (a cap-33 mutant fails it).
- TestACancelledCommitStopsJoinsAndWritesNothing: cancelled before any
lookup and mid-flight, the commit returns within a bound with no lookup
still running, admission stopped and HEAD not written (a mutant that
keeps admitting after a failure starts 502 lookups and fails it).
- TestTheEarliestFailureByPositionDecidesTheError: of two failures the
earlier position wins, whichever finishes first (a first-to-finish
mutant fails it both ways).
- invariants.md: the admission and join waits of allOwnedBySession in
C.W, and the scale, detach and control tests on
INV-SNAPK-COMMIT-REACH-001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once a lookup fails, no new one starts: lookups start in order, so every
object before the failure has started and is waited for, and the first
failure in order is still the one reported.
The test object store's Stat is now safe for the concurrent lookups (its
hook runs outside the lock), and TestRunCommit_LooksUpOnlyWhatIsNew
compares the set of objects looked up, not their order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RunCommit checked every new own chunk, every segment and the root with
one filer lookup each, one at a time, before its conditional update. The
work grows with the proposal and the cut's deadline does not: a first
snapshot of a 1 TiB volume names all 262,144 chunks, and each attempt
(and each re-proposal, and a restart's next commit) ran out of the 5 min
cut context around chunk 250k, so no retry could ever land.
The check now runs at most 32 lookups at once. It is unchanged in what
it decides: every object must be written by this session and unmarked,
the first failing object in the same order decides the error, and no
update is issued unless all pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A start whose master gRPC port is held by another listener never brings
up its filer; the wait for a listening server stopped the test with
t.Fatalf before the fresh-ports retry could run. The start now returns that
error, so it is discarded and started again like a start that never
accepts a write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>