Commit Graph
2732 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 ce2ca830ae test: F1 blocks are exactly 4096 bytes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:09:03 -08:00
pingqiuandClaude Opus 5.5 76cf29e7e0 test: snapshot ladder rung F1 harness (N volumes, one server id, one host)
V1-SPEC r2.49/r2.52. Opt-in (F1_RUN=1, a large test, never in CI): N
blockvolume processes under ONE server id, each its own replica id and
ports, snapshotted at the same instant per round under write load; every
snapshot restored and verified (ledger exact, load a prefix); the JSON
report carries cut time and barrier pause, client write p50/p99/max inside
and outside snapshot windows, request-to-commit time, host-slot waits,
restore time, chunks/bytes uploaded, filer entries per round and RSS. The
procedure harness's bvHost gains optional server and replica ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:56:04 -08:00
Ping Qiu 6ceca492b9 Merge pull request #450 from seaweedfs/docs/volume-delete
docs: how to delete a volume
2026-11-22 16:15:22 -08:00
pingqiu 221d7f298c Merge remote-tracking branch 'origin/main' into docs/volume-delete 2026-11-22 16:01:10 -08:00
Ping Qiu 6579c5c8a2 Merge pull request #447 from seaweedfs/test/snapshot-ladder-a
test: snapshot ladder A1-A4 on one volume
2026-11-22 16:00:17 -08:00
pingqiuandClaude Fable 5.2 84252ed21f docs: how to delete a volume; README states the real delete rule
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 15:56:42 -08:00
pingqiuandClaude Opus 5.5 bb1cf531d5 test: snapshot ladder folds: timer and schedule pinned off, edge blocks read, A3 three repetitions
The ladder's blockvolumes run with --chunk-capture-interval 0 and
--chunk-snapshot-schedule off, so A2 counts only its own snapshot's
uploads. A1, A2 and A4 also read a block in an untouched chunk and the
volume's last block through the restore. A3 runs three snapshots that start
after 0, 40 and 120 of their writes, logs the prefix each holds, and fails
as inconclusive if every one landed before or after all its writes. The
header says an A test never deletes a snapshot or runs GC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:27:24 -08:00
pingqiuandClaude Opus 5.5 1f816a664a test: snapshot ladder A3 (writes during a snapshot) and A4 (A, B, A)
A3: blocks written one after another while snapshot 2 runs; its restore
holds a prefix of those writes (one point in time) and snapshot 3 holds
them all. A4: one block holds A, B, then A again with a snapshot after
each; the three restores read A, B, A.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:20:03 -08:00
pingqiuandClaude Opus 5.5 6eed6f3c85 test: snapshot ladder A1 and A2 on one volume, real binaries
A1: one block written, one snapshot, the snapshot read back block by
block holds that block and zeros around it. A2: an incremental snapshot
holds the volume at its point, the first snapshot is unchanged, and the
second snapshot uploads only the two chunks that changed. A snapshot is
read through the product's own path, a restore into a new volume, so the
tests do not depend on the chunk format. The procedure harness gains
restore-target volumes in the cluster spec, each on a node of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:12:47 -08:00
Ping Qiu befbf85315 Merge pull request #446 from seaweedfs/test/invcheck-conflict-markers
test: invcheck refuses merge conflict markers in the ledger files
2026-11-22 14:07:52 -08:00
pingqiuandClaude Opus 5.5 6e4ea872b4 test: invcheck refuses merge conflict markers in the ledger files
A line starting with "<<<<<<< " or ">>>>>>> ", or a line that is exactly
"=======", in docs/design/invariants.md or the lists invcheck reads fails
the test with its file and line. The marker check is pinned on a fixture
that holds a conflicted region and two look-alikes it must not report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:57:28 -08:00
Ping Qiu 7176fef724 Merge pull request #421 from seaweedfs/docs/operator-guide
docs: operator guide, the entry page for standalone v1.0 volumes
2026-11-22 13:53:48 -08:00
pingqiu 6c225b3936 Merge remote-tracking branch 'origin/main' into docs/operator-guide 2026-11-22 13:39:54 -08:00
Ping Qiu 441c69831a Merge pull request #407 from seaweedfs/docs/volume-lifecycle
docs: volume lifecycle for a standalone workspace volume
2026-11-22 13:39:16 -08:00
pingqiuandClaude Fable 5.2 ca6ea25f66 docs: lifecycle, after a crash the process exits 75 and the unit restarts it; run table from the procedure tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:59 -08:00
pingqiuandClaude Fable 5.2 62b71734c1 docs: lifecycle, the returning old host after a forced move as the procedure test shows it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:06 -08:00
pingqiu e3e351f895 Merge remote-tracking branch 'origin/main' into docs/volume-lifecycle 2026-11-22 13:24:51 -08:00
Ping Qiu a4a35dcd9c Merge pull request #445 from seaweedfs/train/20261122-28
train: OSS RC train 28 (#440 lifecycle durability, #441 refusal cure, #442 ACK proof, #444 lock parent)
2026-11-22 13:04:01 -08:00
pingqiu 0245fd4ba1 Merge branch 'pr444' into train/20261122-28 2026-11-22 12:31:05 -08:00
pingqiu 4cc7873ed0 Merge branch 'pr442' into train/20261122-28 2026-11-22 12:30:54 -08:00
pingqiu 1da6c82c91 Merge branch 'pr441' into train/20261122-28 2026-11-22 12:30:54 -08:00
pingqiu 86f9b5e370 Merge branch 'pr440' into train/20261122-28 2026-11-22 12:30:54 -08:00
pingqiu b4daad80d1 fix(workspace): delegate revocation ACK to stored seal proof 2026-11-22 12:23:22 -08:00
pingqiu bdbe601e4c test(workspace): refuse unassigned stored seal proofs 2026-11-22 12:23:04 -08:00
pingqiuandClaude Opus 5.5 dc393ba380 durable: refuse a non-directory lock path; chmod only what this call created
The lock directory and its parent are chmod'ed only when this call's own
Mkdir created them, so an existing or concurrently created directory keeps
its mode; an existing lock path that is not a directory refuses (Lstat), as
the constructor did before. The invariant row links the mode tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:22:51 -08:00
pingqiuandClaude Opus 5.5 5c84520d48 durable: red test, a regular file as the lock directory is accepted
The new helper treats any existing lock path as the directory; the old
constructor refused a non-directory. Controls: an existing parent and an
existing lock directory keep their modes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:22:36 -08:00
pingqiu a777189b7f fix: diagnose advertised heartbeat addresses accurately 2026-11-22 12:15:53 -08:00
pingqiu 8edb6b128e test: distinguish heartbeat advertised address from RPC peer 2026-11-22 12:15:41 -08:00
pingqiuandClaude Opus 5.5 4c36f1f861 durable: lay out a created lock directory as tmpfiles.d does
A missing /run/sw-block is created 0755 and the locks directory 0700, with
the modes set explicitly (the umask cannot narrow them); existing
directories are left alone. The cure line also names the parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:10:34 -08:00
pingqiuandClaude Opus 5.5 286f5ebeb8 durable: red test, a created lock directory's parent must be 0755
V1-SPEC r2.45 (1): MkdirAll(locks, 0700) also makes a missing parent
/run/sw-block 0700; created by root, it keeps the unit's user out even after
the locks directory is chowned. The tmpfiles.d layout is parent 0755,
locks 0700.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:10:34 -08:00
Ping Qiu 4c5d05e058 Merge pull request #439 from seaweedfs/fix/one-process-per-volume
blockvolume: one live process per volume per host; refuse a rolled-back root (V1-SPEC r2.45)
2026-11-22 12:09:31 -08:00
pingqiu 3c50b14e8d refactor: share lifecycle record durability and warn on ancestor sync failures 2026-11-22 11:29:31 -08:00
pingqiu 8f98eb3caa test: keep lifecycle opens available under ancestor sync failures 2026-11-22 11:27:48 -08:00
pingqiu 7928b4d257 fix: give heartbeat host mismatch the registration cure 2026-11-22 11:24:50 -08:00
pingqiu c775b752af test: require heartbeat registration cure and slot detail 2026-11-22 11:24:34 -08:00
pingqiuandClaude Opus 5.5 badc7f9596 test: start test-lock-dir children without INVOCATION_ID
A test runner that is itself a systemd service (the CI runner unit) passes
its INVOCATION_ID to every child, and blockvolume rightly refuses
--volume-lock-dir-test-only under systemd. Every subprocess start that
passes the flag now builds the child's environment without INVOCATION_ID
(one helper per test package). The product rule is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:23:55 -08:00
pingqiuandClaude Fable 5.2 85c2ec3364 docs: lifecycle setup, quote the refusal text with its cure
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:22:48 -08:00
pingqiu 8829b69312 fix: explain how to correct a workspace holder host mismatch 2026-11-22 11:14:17 -08:00
pingqiu 07bbe359c1 test: require registration cure in holder host refusal 2026-11-22 11:13:48 -08:00
pingqiuandClaude Fable 5.2 ef9ec6bba6 docs: lifecycle setup, register nodes by the address they reach blockmaster from
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:13:20 -08:00
pingqiu f9038ca88d fix: sync the full lifecycle ancestor chain on every open 2026-11-22 10:51:03 -08:00
pingqiu b87fea473b test: reproduce incomplete ancestor sync after failed first open 2026-11-22 10:50:31 -08:00
pingqiu aaedc61855 fix: sync every created lifecycle ancestor from cleaned paths 2026-11-22 10:44:01 -08:00
pingqiu f865a8e21f test: expose unsynced lifecycle ancestors and trailing separator 2026-11-22 10:43:23 -08:00
pingqiuandClaude Opus 5.5 f9383c5e48 test: zero HEAD CAS on the refused copy; same-epoch HEAD advance before the claim recheck
- The rolled-back copy makes no HEAD CAS attempt (counted at the remote,
  not inferred from PUTs).
- Control: an exact copy passes the preliminary HEAD read; HEAD then
  advances at the same epoch and holder before the claim's own read; the
  claim-image recheck refuses it as stale, with no CAS.
- The refused second provider leaves its storage root empty.
- The --help capture registers stderr restoration and pipe closes first,
  closes the writer before joining the reader, and bounds the join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 83f8507d3b durable, blockvolume: review fold for the host lock and the rolled-back root
- The lock directory is created (0700) when missing; only a directory or
  lock file that cannot be created or opened refuses, with the cure
  (install the tmpfiles.d entry, or chown the directory and its lock files
  to the unit's user).
- The lock file is opened read-only (an existing file first, created 0644
  only when missing), so a lock file another user created stays lockable;
  it is never unlinked, and the next owner locks the same file.
- A stale-root startup end carries its cure into the final exit line:
  exiting status=78 reason=superseded cure="...".
- Tests: a cut's remote_lsn is locally durable at its HEAD CAS, and the
  root's crash image at the CAS reattaches and serves; the rolled-back copy
  makes no claim or PUT, admits no I/O, keeps its data and durable LSN; an
  exact copy at HEAD attaches; a read-only lock file is taken.
- Invariants: INV-WS-ONE-PROCESS-PER-HOST-001 and its M4 edge; the
  rollback row names its test file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 3a0dcd9d64 docs: invariants count the host lock's deciding function (#439)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 bd8afb0aea blockvolume: one live process per volume per host; refuse a rolled-back root
V1-SPEC r2.45.
(1) The provider takes an exclusive, non-blocking lock on
/run/sw-block/locks/<volume id>.lock before the volume's store opens and
releases it after the store closes (HostVolumeLock, set by blockvolume). A
missing directory refuses the provider with the cure; the tmpfiles.d
entry ships in deploy/systemd and both units may write it under
ProtectSystem=strict. --volume-lock-dir-test-only (hidden, refused under
systemd, warned at start) is for plain subprocess tests and harnesses.
(2) An existing root whose HEAD names this holder attaches only if its
local durable LSN reaches HEAD's remote_lsn; otherwise the existing
stale-root refusal, no retry (78 superseded), with the cure.
(3) docs/releases/one-process-per-volume.md: the lifecycle do-not list.
No HEAD change, no format bump, no new persisted file, no new exit reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 9d58ce6b82 test: red, one live process per volume per host (V1-SPEC r2.45 (1))
A second provider for the same volume on one host (another storage root,
the same host lock directory) must be refused before its store opens; a
missing lock directory, the default one included, refuses the provider;
blockvolume's test-only lock directory is hidden from --help and refused
under systemd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:39:43 -08:00
pingqiuandClaude Opus 5.5 3c3ba23a63 durable: red test, a rolled-back copy of a root attaches under a newer HEAD
V1-SPEC r2.45 (2): an existing root whose HEAD names this holder must
reach HEAD's remote_lsn with its local durable LSN. A copy taken before a
later cut attaches today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:39:43 -08:00