Commit Graph
3832 Commits
Author SHA1 Message Date
Ping Qiu dbac027b5a Merge pull request #686 from seaweedfs/fix/max-volume-size
fix: refuse a new volume above the maximum size at both create doors
seaweed-block/v1.0.0-rc.3
2026-11-27 19:03:15 -08:00
Ping Qiu 3dcf21e6ac Merge pull request #687 from seaweedfs/test/weed-pick-at-start
test: pick each weed server's ports just before it starts
2026-11-27 18:40:59 -08:00
pingqiuandClaude Opus 5.5 be8df1f354 docs: the 256 GiB limit assumes a filer round trip under about 1 ms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:39:34 -08:00
pingqiuandClaude Opus 5.5 586f7e442d fix: new volumes are at most 256 GiB in v1.0.0
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>
2026-11-27 18:36:43 -08:00
Ping Qiu bee6f7611c Merge pull request #681 from seaweedfs/test/weed-wait-retry
test: start the weed cluster again on fresh ports when a server never listens
2026-11-27 18:17:32 -08:00
pingqiuandClaude Opus 5.5 6b5f656247 test: pick each weed server's ports just before it starts
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>
2026-11-27 18:11:56 -08:00
Ping Qiu 8bcb9cb385 Merge pull request #685 from seaweedfs/fix/pending-unresolved-log
fix(durable): a capture refused as PendingUnresolved says so in the log
2026-11-27 18:11:32 -08:00
pingqiuandClaude Opus 5.5 57cfe0827f test: max volume size boundary at one block above, at both doors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:04:50 -08:00
pingqiuandClaude Opus 5.5 aa23975624 fix: refuse a new volume above the maximum size at both create doors
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>
2026-11-27 17:58:23 -08:00
pingqiuandClaude Opus 5.5 71f52fa270 fix(durable): the PendingUnresolved line's cure names the process restart and the size limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:46:47 -08:00
pingqiuandClaude Opus 5.5 33a331ffb9 fix(durable): a capture refused as PendingUnresolved says so in the log
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>
2026-11-27 17:43:51 -08:00
Ping Qiu 18a75b1668 Merge pull request #683 from seaweedfs/fix/commit-parallel-verify
fix(chunkstore): verify a commit's objects with bounded parallel lookups
2026-11-27 17:37:37 -08:00
pingqiuandClaude Opus 5.5 c5461c4ff8 test(chunkstore): gate-driven, bounded commit-check controls; name the held lock
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>
2026-11-27 17:14:20 -08:00
pingqiuandClaude Opus 5.5 786f3a4d82 test(chunkstore): controls for the bounded commit check; wait and invariant ledger
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>
2026-11-27 17:02:33 -08:00
pingqiuandClaude Opus 5.5 aebf06e8d9 fix(chunkstore): stop starting commit lookups after the first failure
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>
2026-11-27 16:51:09 -08:00
pingqiuandClaude Opus 5.5 3630f277d6 test(chunkstore): a detaching commit of many new chunks completes within the budget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:31:23 -08:00
pingqiuandClaude Opus 5.5 13784a3bcd fix(chunkstore): verify a commit's objects with bounded parallel lookups
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>
2026-11-27 16:26:30 -08:00
pingqiuandClaude Opus 5.5 dd2e8a8517 test: start the weed cluster again on fresh ports when a server never listens
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>
2026-11-27 14:38:08 -08:00
Ping Qiu 6ba69c56c0 Merge pull request #680 from seaweedfs/docs/v100-host-loss-window
docs: v1.0.0 note states the default host-loss window up front
2026-11-27 14:38:00 -08:00
pingqiuandClaude Opus 5.5 b38e81a8d3 docs: v1.0.0 note states the default host-loss window up front
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:20:54 -08:00
Ping Qiu 90f2cab4e8 Merge pull request #677 from seaweedfs/docs/release-v1.0.0
docs: v1.0.0 release note
2026-11-27 14:18:50 -08:00
Ping Qiu 6e10314aec Merge pull request #675 from seaweedfs/docs/replicated-preview
docs: replicated volumes are a preview in v1.0, with their limits
2026-11-27 13:37:05 -08:00
pingqiuandClaude Opus 5.5 88d107791f docs: confirm the left-out replica before a wipe; never on the primary's host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:27:37 -08:00
pingqiuandClaude Opus 5.5 c64eafec9e docs: a best-effort volume is not failed over automatically
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>
2026-11-27 13:20:42 -08:00
pingqiuandClaude Opus 5.5 877a5e4395 docs: periodic HEAD cuts are off by default
--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>
2026-11-27 13:08:59 -08:00
pingqiuandClaude Opus 5.5 63daf16d90 docs: under best-effort a lagging replica can still show healthy
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>
2026-11-27 12:51:41 -08:00
pingqiuandClaude Opus 5.5 ee158b11cd docs: host-limit-dir stuck path stated plainly; rerun keeps uploads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:40:48 -08:00
pingqiuandClaude Opus 5.5 55f141ad87 docs: a snapshot rerun reuses uploaded chunks; host-limit pacing ceiling
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>
2026-11-27 12:39:26 -08:00
pingqiuandClaude Opus 5.5 4086f34221 docs: snapshot time, --timeout and what a timed-out snapshot leaves
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>
2026-11-27 12:30:10 -08:00
Ping Qiu 5a66531663 Merge pull request #676 from seaweedfs/ci/process-shards-on-668
ci: run the process-level tests in 4 parallel shards
2026-11-27 11:54:46 -08:00
Ping Qiu e9a9f5d710 Merge branch 'main' into ci/process-shards-on-668 2026-11-27 11:07:56 -08:00
Ping Qiu 4d392531e4 Merge pull request #668 from seaweedfs/test/weed-start-fresh-ports
test: start the weed cluster again on fresh ports when it never accepts a write
2026-11-27 11:07:23 -08:00
pingqiuandClaude Opus 5.5 78505bf3cf docs: v1.0.0 release note, recovery point, Kubernetes and the filer
- 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>
2026-11-27 09:27:53 -08:00
pingqiuandClaude Opus 5.5 537487c9cd docs: v1.0.0 release note, three more single-replica known limits
- 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>
2026-11-27 09:26:23 -08:00
pingqiuandClaude Opus 5.5 1941bbfa84 docs: v1.0.0 release note
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>
2026-11-27 09:23:30 -08:00
pingqiuandClaude Opus 5.5 0391c68c20 docs: replicated preview, the v1.0.1 scope
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>
2026-11-27 09:20:43 -08:00
pingqiuandClaude Opus 5.5 8e6aca8c39 test: a weed pair's HTTP slices never meet another shard's gRPC ports
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>
2026-11-27 09:19:10 -08:00
pingqiuandClaude Opus 5.5 3b43a590ae ci: run the process-level tests in 4 parallel shards
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>
2026-11-27 08:42:18 -08:00
pingqiuandClaude Opus 5.5 f5ef643295 test: a CI shard draws its test ports from its own slice
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>
2026-11-27 08:41:16 -08:00
pingqiuandClaude Opus 5.5 517c17c0ca docs: replicated preview, no snapshots, restore or moves
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>
2026-11-27 07:17:26 -08:00
pingqiuandClaude Opus 5.5 352b9c93cc docs: replicated preview, the operator's procedure and its limits
- 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>
2026-11-27 06:32:30 -08:00
pingqiuandClaude Opus 5.5 bc0e640e75 docs: replicated volumes are a preview in v1.0, with their limits
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>
2026-11-27 06:21:15 -08:00
Ping Qiu 6da9481450 Merge pull request #671 from seaweedfs/docs/host-connect-dead-host
docs: host connect settings, a dead host, and disconnect after a failover
2026-11-27 04:26:23 -08:00
pingqiuandClaude Opus 5.5 c2a6227022 docs: host connect settings, a standalone holder that stops with its host up
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>
2026-11-27 03:33:36 -08:00
pingqiuandClaude Opus 5.5 21c2bfaa3e docs: host connect settings, the standalone guest moves with its primary
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>
2026-11-27 03:31:47 -08:00
pingqiuandClaude Opus 5.5 60d7012f71 docs: host connect settings, defaults by the same count, and which deployment
- 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>
2026-11-27 03:26:25 -08:00
pingqiuandClaude Opus 5.5 06f3546909 docs: host connect settings, a dead host, and disconnect after a failover
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>
2026-11-27 03:18:17 -08:00
Ping Qiu 11a3b58797 Merge pull request #666 from seaweedfs/docs/snapshot-head-conflict-retry
docs: a snapshot that answers head_conflict, and its retry
seaweed-block/v1.0.0-rc.2
2026-11-27 01:18:51 -08:00
Ping Qiu 897b40bbf6 Merge pull request #665 from seaweedfs/fix/empty-snapshot-view
fix(chunkstore): the empty-image snapshot commit keeps the view's image
2026-11-27 01:18:10 -08:00
Ping Qiu 6d3578ab77 Merge branch 'main' into fix/empty-snapshot-view 2026-11-27 00:15:10 -08:00