Commit Graph
2714 Commits
Author SHA1 Message Date
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
Ping Qiu 4ac3f3fa70 Merge pull request #438 from seaweedfs/train/20261122-26
train: OSS RC train 26 (#437 lease validity, #436 start limits, #414 procedure gate)
2026-11-22 10:38:47 -08:00
pingqiu d0626bdfcd fix: sync lifecycle parent entries and pin sync failure publication 2026-11-22 10:35:08 -08:00
pingqiu 33097cb797 fix: durably replace volume and placement lifecycle records 2026-11-22 10:31:31 -08:00
pingqiu 16ea488a0b test: reproduce volume and placement record loss across rename 2026-11-22 10:30:55 -08:00
pingqiu 956a5f86eb docs: disclose lifecycle failed-put and delete durability gaps 2026-11-22 10:29:06 -08:00
pingqiu 4bc0d302c6 docs: generalize lifecycle durability row and record open gaps 2026-11-22 10:28:04 -08:00
pingqiu 5ea7c6a006 docs: bind node inventory crash safety to durability invariant 2026-11-22 10:26:32 -08:00
pingqiu ba6574c87b fix: atomically sync node inventory replacements 2026-11-22 10:21:57 -08:00
pingqiu 34f5c7656c test: reproduce node inventory loss at publication rename 2026-11-22 10:21:33 -08:00
pingqiuandClaude Fable 5.2 6d45520496 docs: lifecycle, one live process per volume per host by the host lock
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 10:19:53 -08:00
pingqiuandClaude Fable 5.2 91aa7ea088 docs: lifecycle do-not list, blockmaster stores are not restored from a copy
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:46:18 -08:00
pingqiu aa0c8a8942 Merge branch 'pr414' into train/20261122-26 2026-11-22 09:27:36 -08:00
pingqiuandClaude Opus 5.5 440f9eff3c test: the returning old host exits 75 on its old root and on a fresh root, and the unit restarts it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:26:58 -08:00
pingqiuandClaude Fable 5.2 fb9b387bf9 docs: the lifecycle page's do-not list
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:24:08 -08:00