Commit Graph
3853 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 d20b61c299 fix(sw-block): repeat an outcome_unknown answer, refuse a non-positive --timeout; ledger rows
INV-CLI-CHUNK-LOOP-001..004, one property per row in B.5,
each citing its tests:

- 001: the same request is repeated only after a retryable or
  outcome_unknown answer. An outcome_unknown answer not marked retryable is
  now repeated too.
- 002: the loop stops at the first definite answer.
- 003: no request starts once --timeout has passed, and a non-positive
  --timeout is refused before any request (snapshot, cut and detach; before,
  a zero --timeout was sent as timeoutMs 0, which the server reads as its
  own default bound).
- 004: a request that ended early is repeated only after a backoff.

Tests: TestChunkLoopRepeatsAnOutcomeUnknownNotMarkedRetryable and
TestChunkNonPositiveTimeoutIsRefused; a mutant that drops either change
fails its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:19:01 -08:00
pingqiuandClaude Opus 5.5 d39e321f81 fix(sw-block): one deadline bounds the request loop; a stopped detach says so
Review of the request loop:

- One deadline, now + --timeout, bounds the whole loop. Each request's own
  bound and the client's wait for its answer end inside it; the progress read
  (at most 2 s) and the pause are cut at it. A request is sent only while at
  least a minimum request is left, so none starts after --timeout and none
  carries a zero or negative bound. The first request is checked the same
  way.
- After a detach answers outcome_unknown the holder has stopped guest I/O
  until it settles the detach in the background. The progress line says so;
  a detach still unknown at --timeout says the volume stays stopped and how
  to read the settled answer. Snapshot and cut unknowns are not described as
  a guest stop. The detach's --timeout help says a long bound can mean a long
  guest stop.
- The progress line reports the chunks the holder staged since the first
  request (its counter runs from process start) and carries the answer's
  message; the requests and the progress read share one HTTP client.
- The pause's start and cap are package variables, so a test can tell a
  doubling pause from a constant one.

Tests: a held progress read and slow answers send no request after
--timeout and return by it; the pause doubles to its cap; a successful
progress read is reported as a change, read for the right volume; the
generated request id is exactly the printed one in every request; a detach's
outcome_unknown settles to sealed, to aborted then sealed, and to fenced
(non-retryable), with and without --plain. The timing tests fail at once,
not at the binary's timeout, when the loop misses its --timeout. Mutants
caught: no dispatch check, the client waiting the old 5 s cushion, an
unbounded progress read, a constant pause, the stopped-I/O line on every
unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:10:45 -08:00
pingqiuandClaude Opus 5.5 d231068f6e feat(sw-block): snapshot, cut and detach repeat 5-minute requests up to --timeout
The cut budget's request loop (v1.0.1). With --timeout above the
server's bound on one request (5 minutes), the command sends requests of at
most that bound with the same body (a snapshot keeps its name and request
id) until one answers, a non-retryable refusal ends them, or --timeout has
passed. A commit that landed during a timed-out request is found by the next
one, not repeated, and the holder keeps an unfinished cut's uploads between
requests, so each request sends only what is missing.

Between requests the command prints the request's end, the time left and,
when the holder answers GET /status/durable, its staged and dirty chunk
counts. A request that ends before its bound (the store refused at once) is
followed by a pause doubling to 30 s, so a store that is down is not asked in
a busy loop. A --timeout within the bound sends one request, as before; only
the answer the loop ends on is printed on stdout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:46:14 -08:00
pingqiuandClaude Opus 5.5 79ca61935a test(sw-block): red: snapshot, cut and detach finish across 5-minute requests
The cut budget's request loop (v1.0.1): with --timeout above the server's 5-minute
bound on one request, the command must send requests with the same name and
request id until one answers, a non-retryable refusal ends it, or --timeout
passes. These tests fail on main: one request is sent and its timed-out
answer is final. The two controls (a non-retryable refusal; a --timeout
within the bound sends one request) pass as before.

chunkRequestBound names the server's per-request bound so the tests can
shorten it; nothing reads it yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:42:44 -08:00
Ping Qiu ec825e5f48 Merge pull request #696 from seaweedfs/docs/v100-cut-metadata-size
docs: v1.0.0 note: per-cut metadata size from the measurement
2026-11-28 02:42:18 -08:00
pingqiuandClaude Opus 5.5 7d7d8c1b27 docs: v1.0.0 note: per-cut metadata size from the measurement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:35:31 -08:00
Ping Qiu d78dce3ca4 Merge pull request #695 from seaweedfs/docs/v100-unref-roots
docs: v1.0.0 known limit: unnamed roots and segments kept until delete
2026-11-28 02:09:22 -08:00
pingqiuandClaude Opus 5.5 5a788ecb49 docs: v1.0.0 known limit: unnamed roots and segments kept until delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:01:32 -08:00
Ping Qiu 09ce470f57 Merge pull request #694 from seaweedfs/docs/v100-later-release
docs: name a release only for fixes on its list
2026-11-28 01:14:05 -08:00
pingqiuandClaude Opus 5.5 d5738ad232 docs: name a release only for fixes on its list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:06:22 -08:00
Ping Qiu 20102bc3be Merge pull request #693 from seaweedfs/docs/v100-seaweedfs-no-auth
docs: sw-block does not authenticate to SeaweedFS
2026-11-27 23:59:11 -08:00
pingqiuandClaude Opus 5.5 8ae6d05354 docs: sw-block does not authenticate to SeaweedFS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:51:01 -08:00
Ping Qiu 70a8b3d120 Merge pull request #692 from seaweedfs/docs/v100-refused-restore-release
docs: after a refused restore, release the target, then the never-served delete
2026-11-27 23:30:44 -08:00
pingqiuandClaude Opus 5.5 353927894a docs: after a refused restore, release the target, then the never-served delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:22:10 -08:00
Ping Qiu fa8faee072 Merge pull request #691 from seaweedfs/docs/v100-restore-target-delete-timeout
docs: --timeout for the first cut when deleting a restore target
2026-11-27 22:44:50 -08:00
pingqiuandClaude Opus 5.5 0c80ec3f6d docs: slower disks note; restore-target limit fix is planned for 1.0.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:36:40 -08:00
pingqiuandClaude Opus 5.5 c28e82f06c docs: one unit (GiB/s); retry at 5m, then the known limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:35:22 -08:00
pingqiuandClaude Opus 5.5 f127bc4a98 docs: restore-target delete --timeout capped at 5m; first-cut known limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:34:09 -08:00
pingqiuandClaude Opus 5.5 092aa8c69e docs: --timeout for the first cut when deleting a restore target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:30:40 -08:00
Ping Qiu 5fa67424c5 Merge pull request #688 from seaweedfs/docs/v100-filer-capacity
docs: v1.0.0 note: keep free capacity in SeaweedFS
2026-11-27 21:27:45 -08:00
pingqiuandClaude Opus 5.5 0e6042a483 docs: v1.0.0 note: keep free capacity in SeaweedFS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:20:11 -08:00
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