Commit Graph
3868 Commits
Author SHA1 Message Date
Ping Qiu 11059ca0ae Merge pull request #707 from seaweedfs/fix/status-server-immediate-close
Fix status server panic during immediate shutdown
2026-11-28 11:40:52 -08:00
Ping Qiu feb2bc6c74 Merge pull request #708 from seaweedfs/test/slow-host-test-bounds
test: bound each NVMe command and give the review helper a hang guard, not a fixed budget (slow hosts)
2026-11-28 11:38:20 -08:00
Ping Qiu f4fb1ac4f7 Merge pull request #701 from seaweedfs/test/counting-remote-race
test: lock countingRemote's counts; the chunk layer puts in parallel
2026-11-28 11:07:25 -08:00
pingqiuandClaude Opus 5.5 16c8f86864 test: bound each NVMe command, and give the review helper a hang guard, not a 10 s budget
- The NVMe initiator renews its deadline (nvmeIODeadline, 60 s) before every
  I/O command, so it bounds each command instead of the connection's whole
  life: requireBlocks' 65,536 reads no longer race one dial-time deadline.
- reviewBindingHostBeforeStart's context is a hang guard for the whole test
  (60 s, was 10 s), so a slow host's setup does not use up the time the
  later calls and the successor probe need.

TestNVMeInitiatorDeadlineBoundsEachCommand and
TestWorkspaceRPCSameHostForcedRecoveryOutlivesASlowSetup pass; test-only,
no product change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:05:22 -08:00
pingqiuandClaude Opus 5.5 2095acfd7a test: red: a slow host's setup and a full-volume read outlast fixed test bounds
Two tests fail on a slow host while CI passes (a WSL run with its scratch
on a mounted Windows drive). Both fail because a fixed bound in the test,
not the product, runs out:

- TestWorkspaceRPCSameHostForcedRecoveryRecordsLoss: the successor probe and
  the later calls run under reviewBindingHostBeforeStart's 10 s context, and
  a slow setup uses it up ("signal: killed"). The new
  TestWorkspaceRPCSameHostForcedRecoveryOutlivesASlowSetup pauses 11 s
  before the probe (both clocks the test reads are fake, so no lease
  changes) and fails on main on any host.
- TestCutoverWriteSnapshotKillRestartRestore: the NVMe initiator sets one
  deadline at dial (60 s) and requireBlocks then reads all 65,536 blocks on
  that connection. The new TestNVMeInitiatorDeadlineBoundsEachCommand shortens
  the deadline (now the variable nvmeIODeadline) to 2 s, idles 2.5 s and
  reads one block: it fails on main on any host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:05:01 -08:00
pingqiu 6e967bc8b4 keep status regression in the existing unit suite 2026-11-28 08:49:53 -08:00
pingqiu 10addd3f10 run status listener regression in race CI 2026-11-28 08:48:14 -08:00
pingqiu aee474665e fix status server immediate shutdown race 2026-11-28 08:41:33 -08:00
Ping Qiu 25a3b755dc Merge pull request #706 from seaweedfs/docs/verify-known-limit
docs: do not recommend ops chunk verify in v1.0.0
seaweed-block/v1.0.0
2026-11-28 08:00:11 -08:00
pingqiuandClaude Opus 5.5 c219ef79c1 docs: do not recommend ops chunk verify in v1.0.0
ops chunk verify does not read the v1.0.0 volume directory layout: on a
healthy volume it reports a missing VOLUME, or (by its full name) false
identity findings. Remove its steps and claims from the guides and the
README, and state the limit in the release note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 07:44:58 -08:00
Ping Qiu b3d875b79e Merge pull request #702 from seaweedfs/docs/v100-cleaning-timing
docs: v1.0.0: when the cleaning runs after a snapshot delete
2026-11-28 06:24:22 -08:00
pingqiuandClaude Opus 5.5 4b41323c13 docs: v1.0.0: when the cleaning runs after a snapshot delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 06:16:30 -08:00
Ping Qiu 91b3b97548 Merge pull request #700 from seaweedfs/docs/v100-cleaning-bound
docs: v1.0.0 known limit: the one-minute cleaning pass
2026-11-28 04:21:12 -08:00
pingqiuandClaude Opus 5.5 be32061728 test: lock countingRemote's counts; the chunk layer puts in parallel
countingRemote.Put updated its counts and seen map with no lock while
the chunk layer's upload workers call Put in parallel; a main run aborted
with "concurrent map writes". The counts are now under a mutex, and the
read of the upload count inside the cut is too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:18:08 -08:00
pingqiuandClaude Opus 5.5 83dda5d2fe docs: v1.0.0 note: the cleaning pass starts at the first shard; planned=N
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:13:22 -08:00
pingqiuandClaude Opus 5.5 5644f47a51 docs: v1.0.0 known limit: the one-minute cleaning pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:09:06 -08:00
Ping Qiu fc69562e8c Merge pull request #698 from seaweedfs/docs/v100-full-read-fixes
docs: v1.0.0 note and operator guide: fixes from two full reads
2026-11-28 03:48:34 -08:00
pingqiuandClaude Opus 5.5 5aa8ce1c7b docs: replica wipe needs a dedicated root; figures bound to their records
The untested replica wipe needs a --durable-root that holds that volume
only: the data files' names can match another volume's in a shared root.
It removes the data files and the epoch table and keeps the replica floor.
Exit 75's causes are examples, assignment_timeout added. The blocked reads
with kernel defaults are 552 s and 614 s as recorded; the slowest guest
answer during a store outage was measured once and its record not kept.
The cut's ~30 s answer is the chunk upload deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:40:41 -08:00
pingqiuandClaude Opus 5.5 79f03962ab docs: v1.0.0 note and operator guide: fixes from two full reads
Removed GC and --grace text replaced by the holder's cleaning; the replica
wipe scoped to that volume's own files; outcome_unknown on a restore
target's delete means I/O stopped until settlement; the recovery point is
the last successful snapshot, not a one-day bound; snapshots above about
150 GiB changed need several requests and the schedule retries by itself;
Kubernetes timings scoped to NVMe/TCP; exit 75's causes; the restore CLI
row; the per-cut metadata depends on the volume name length; connection
age with gRPC jitter; the cluster-spec identity cure needs a restart;
throughput and memory figures qualified; the upgrade wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:28:21 -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