Commit Graph
3812 Commits
Author SHA1 Message Date
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
pingqiuandClaude Opus 5.5 b78a01e239 test: start the weed cluster again on fresh ports when it never accepts a write
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>
2026-11-26 23:36:28 -08:00
Ping Qiu dfeab5fa45 Merge pull request #664 from seaweedfs/fix/refresh-live-after-fence
fix(volume): re-draw the live ship session above a completed fence
2026-11-26 23:16:36 -08:00
pingqiuandClaude Opus 5.5 39f329d3b3 docs: a snapshot that answers head_conflict, and its retry
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>
2026-11-26 23:11:55 -08:00
pingqiuandClaude Opus 5.5 cb22c5f3aa test: snapshot bytes from the store, and the busy-operator known defect
- 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>
2026-11-26 22:59:38 -08:00
pingqiuandClaude Opus 5.5 6f81529f7b test(chunkstore): census of the layout remote's own writes
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>
2026-11-26 22:56:38 -08:00
pingqiuandClaude Opus 5.5 94db7c173d fix(chunkstore): the empty-image snapshot commit keeps the view's image
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>
2026-11-26 22:28:28 -08:00
pingqiuandClaude Opus 5.5 2b55f61579 test(volume): the live re-draw through the real callbacks; R < H control; wider census
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>
2026-11-26 21:45:27 -08:00
pingqiuandClaude Opus 5.5 de6a56b453 fix(volume): re-draw the live session above a session whatever its outcome
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>
2026-11-26 21:29:44 -08:00
pingqiuandClaude Opus 5.5 7483d9634e fix(volume): re-draw the live ship session above a completed fence
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>
2026-11-26 21:14:25 -08:00
pingqiuandClaude Opus 5.5 4bc5803dca test(volume): a fenced caught-up peer is healed on its live session (red)
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>
2026-11-26 21:14:24 -08:00
Ping Qiu acbd51268c Merge pull request #663 from seaweedfs/ci/process-skip-docs-only
ci: skip the process-level tests for a pull request that changes only docs
2026-11-26 21:02:15 -08:00
Ping Qiu 37aa6a53db Merge pull request #655 from seaweedfs/test/layout-move-lines
test: layout move and lease tests run the product loop and the gate's prebuilt binary
2026-11-26 20:35:30 -08:00
Ping Qiu 1916a8d94c Merge pull request #662 from seaweedfs/docs/host-connect-settings
docs: host connect settings
seaweed-block/v1.0.0-rc.1
2026-11-26 20:23:04 -08:00
Ping Qiu 127bbff374 Merge pull request #651 from seaweedfs/docs/automatic-failover
docs: a lost replicated primary is failed over automatically
2026-11-26 20:18:49 -08:00
Ping Qiu ae41af9917 Merge pull request #661 from seaweedfs/fix/replay-before-attach
fix(storage): a chunk store drains nothing to the extent before its chunk layer attaches
2026-11-26 20:09:33 -08:00
pingqiuandClaude Opus 5.5 6c10de4e30 ci: the docs-only check reads its whole list and never skips on an error
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>
2026-11-26 19:55:23 -08:00
Ping Qiu 7c14d5bbec Merge pull request #660 from seaweedfs/fix/snapshot-limit-before-cut
fix(snapshot): refuse a snapshot past the limit before its cut
2026-11-26 19:48:41 -08:00
pingqiuandClaude Opus 5.5 bcf2082d5b ci: skip the process-level tests for a pull request that changes only docs
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>
2026-11-26 19:48:39 -08:00
pingqiuandClaude Opus 5.5 fe85c6948e test: a delete refused by dependents leaves the volume reserved
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>
2026-11-26 18:57:19 -08:00
pingqiuandClaude Opus 5.5 75e982c9a3 docs: host connect settings, the blockmaster outage as a lower bound
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>
2026-11-26 18:03:58 -08:00