Commit Graph
3878 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 d6ef70d2fe fix(sw-block): mini binds weed to loopback, owns every port and its dir, and watches all children
Review follow-up. weed mini gets -ip.bind=127.0.0.1 (its -ip alone is the
advertised address; the bind defaulted to 0.0.0.0), every listener's port
explicitly (master, volume and filer HTTP and gRPC), all preflighted and
moved by --port-shift, and its S3, WebDAV and admin UI off. --size refuses
an overflowing value. The dir is claimed by one exclusive mkdir (or must
exist with --reuse) and held by a lock for the run, before any write.
Startup and the layout id wait stop at once when any child dies.

Tests: the supported commands pinned value for value, with controls; a
busy weed port; port shift; one mini per dir; weed dying during startup;
the process tests register their bounded cleanup before any assertion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:47:39 -08:00
pingqiuandClaude Opus 5.5 9613086d50 fix(sw-block): mini prints only commands it has, and says to disconnect before stopping
Review follow-up. The next steps name only commands this binary runs (the
workspace show and chunk snapshots checks, a snapshot), each parsed by a
test; no shell line until the shell exists. Without weed, the missing
chunk store is mini's own sentence, not a check that did not run. With
the connect command and again at stop, mini says to unmount and nvme
disconnect first; at stop it says the data stays in --dir and --reuse
resumes it; one line names it a trial setup (one host, loopback, no
authentication).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:44:41 -08:00
pingqiuandClaude Opus 5.5 33474e882d feat(sw-block): mini --port-shift moves every port; weed mini's filer gRPC and volume ports are passed and checked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:38:05 -08:00
pingqiuandClaude Opus 5.5 7b7c9b36fd feat(sw-block): mini starts the single-host setup in one command
sw-block mini starts weed mini (when a weed binary is found: --weed, else
PATH), blockmaster and one blockvolume (v1) on loopback with the
standalone page's flags: walstore-chunk with the chunk control endpoint
and the workspace lease when weed is there, walstore with a banner in
its first lines when it is not. It prints every command it runs, refuses
an existing --dir unless --reuse and a busy port, never runs sudo or
nvme connect (it prints the connect command and the next steps), and
stops every child, the last started first, on Ctrl-C or when one exits.

A test pins mini's walstore commands to the page's swb_start block and
every chunk flag to a flag the page documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:35:11 -08:00
Ping Qiu 5d6c0883e9 Merge pull request #690 from seaweedfs/fix/plain-settle-reserve
fix(durable): a plain detach keeps a settlement reserve inside the caller's bound
2026-11-28 12:29:28 -08:00
Ping Qiu 539771a86f Merge pull request #714 from seaweedfs/docs/readme-v100-facts
docs(readme): v1.0.0 facts: install, maturity, cleaning, measured rows
2026-11-28 12:19:27 -08:00
pingqiuandClaude Opus 5.5 7d7eee18c6 docs(readme): one name for the restored volume; commands are for v1.0.0
The lifecycle example restored into v3 and then deleted v2, which a
reader following it does not have; it now deletes v3. Install says the
page's commands are for v1.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:00:57 -08:00
pingqiuandClaude Opus 5.5 145e7c8fe8 docs(readme): v1.0.0 facts: install, maturity, cleaning, measured rows
Install from the v1.0.0 image (or build from the tag), not a main
commit's image; the single-replica chunk path is supported in v1.0.0 and
replicated volumes are a preview; the holder's cleaning replaces the old
GC text; the fork measurement is dropped, and the lifecycle row is
labelled as a pre-release run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:56:46 -08:00
pingqiuandClaude Opus 5.5 6a259ea479 docs: the plain seal's cut keeps a settlement reserve inside --timeout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:45:20 -08:00
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
pingqiuandClaude Opus 5.5 0e7c439ce3 fix(durable): a plain detach keeps a settlement reserve inside the caller's bound
A plain detach whose final cut ran to the caller's deadline settled on
that already expired context: its first remote call failed and the caller
was told the outcome was unknown, while the background settlement found
nothing committed and resumed serving a moment later.

With a caller deadline, the cut is now cancelled min(4 s, a quarter of
the bound) early and the settlement runs on WithoutCancel(cutCtx) up to
the deadline, the shape the live detach already uses. Outcomes are
unchanged: an undecidable settlement still answers outcome unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:17:58 -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