Commit Graph
2646 Commits
Author SHA1 Message Date
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
Ping Qiu 18b773a346 Merge pull request #434 from seaweedfs/train/20261122-25
train: OSS RC train 25 (#415 retry classes, #429 owner endpoints, #430 public-text check, #412 hand-over tests in CI)
2026-11-22 09:00:32 -08:00
pingqiu 9b975064e7 Merge branch 'pr412' into train/20261122-25 2026-11-22 08:27:31 -08:00
pingqiu e3fa4b4e9a Merge branch 'pr430' into train/20261122-25 2026-11-22 08:27:31 -08:00
pingqiu b92419e2e3 Merge branch 'pr429' into train/20261122-25 2026-11-22 08:27:30 -08:00
pingqiu 50929b5d21 Merge branch 'pr415' into train/20261122-25
# Conflicts:
#	docs/design/invariants.md
2026-11-22 08:27:30 -08:00
Ping Qiu f9ebc99749 Merge pull request #432 from seaweedfs/train/20261122-24
Train 24 (P0 train B): start-time retry exits, listen/ready gate, runtime HEAD-fence exit
2026-11-22 08:26:33 -08:00
pingqiu 99903f9864 fix: preserve typed store faults and retry marked remote short reads 2026-11-22 07:27:17 -08:00
pingqiu 9a01fd8a5b Merge #409 + #410: start-time retry exits (75/78), listen/ready gate on one AdmitsIO, runtime HEAD-fence exit 2026-11-22 07:26:51 -08:00
pingqiuandClaude Opus 5.5 263fce9fcc test: the gate's owner-endpoint check rejects when either recipient lacks positive evidence
Table for wrongOwnerEndpoints: both positive passes; an unreadable log, a log with no
forced-epoch delivery, an empty log, or another host's endpoints in either recipient
rejects (#425).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:16:27 -08:00
pingqiuandClaude Opus 5.5 870a3d9be0 docs, test: name the spec row, not a seat; say channel capacity, not slots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:03 -08:00
pingqiuandClaude Opus 5.5 10ce25ee9c blockvolume: firstAdmitted reports its own completion; the exit diagram carries the runtime HEAD fence
The stop test now observes the worker's return on its own channel with
bounded joins on both paths (a re-check that ignores the stop fails in 12 s);
agent-workspace-design.md's supervisor diagram adds Serving -> Exit78 on a
runtime HEAD fence (head_fenced), independent of the lease.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:03 -08:00
pingqiuandClaude Opus 5.5 50d6d92845 blockvolume: one "may serve" function: AdmitsIO for status and the workspace start gate
V1-SPEC r2.39: StorageBackend.AdmitsIO is the I/O gate itself (the backend
admits I/O AND the guarded projection names this lineage as the healthy
primary). /status FrontendPrimaryReady and NotReadyReason read it through
the provider (lease_not_held stays first; an unopened volume fails closed).

A workspace chunk primary's frontends start once AdmitsIO passes after the
backend first admitted I/O (firstAdmitted: a bounded 50 ms re-check until
first served, workspace primaries only; the backend has no projection-change
signal). Non-chunk volumes and supporting replicas start after open as
before (the #410 design condition, V1-SPEC r2.39), now pinned by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 c0e243a888 docs: INV-FE-FENCE-EXIT-001 statement as ruled (both detection terms named)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 33e72fd083 blockvolume: state the fence-to-exit bound as detection plus cleanup; join the fence watcher
INV-FE-PRIMARY-READY-OPERATIONAL-001 keeps the readiness and listen
property; the fence-to-exit bound is its own row, INV-FE-FENCE-EXIT-001,
stated as what is guaranteed: the fence's detection time (a HEAD fence:
50 ms) plus the existing 5 s cleanup bound from the decision. 307 rows,
221 ACTIVE.

Provider Close joins each layer's fence watcher through p.inflight
(counted under p.mu while not closed). C.W lists the two new waits.

The runtime-fence watcher test owns its worker: cleanup registered before
the start, the return joined with a bound on both paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 22a540d34d blockvolume: a runtime HEAD fence exits 78 head_fenced; serve only while the lease is held
A chunk layer that fences after startup (HEAD has another publication
owner) while the lease is still valid now latches the backend not
operational with that evidence, and the process owner chooses the
no-restart exit 78 head_fenced through processExit.choose. I/O is refused
from the fence itself.

The first-grant log line is written only for a reply that grants: a first
reply that revokes fences the guard and logs no grant.

The frontend-gate tests own their workers: cleanup is registered before
each worker starts and every receive is bounded.

docs/design/invariants.md: INV-WS-SERVE-LEASE-HELD-001 (V1-SPEC r2.37);
INV-FE-PRIMARY-READY-OPERATIONAL-001 statement within 300 characters, with
the runtime fence enforcement and tests; M1 diagram and table carry the
lease-held order and the runtime fence exit; C.W names the runVolume
receive of the stop waiter's result. 306 rows, 220 ACTIVE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 1b675b39d0 blockvolume: lease_not_held reason and a one-time grant log for a workspace primary
A workspace primary whose lease guard is missing or holds no granted lease
now reports NotReadyReason=lease_not_held first (the guard decides, through
the new WorkspaceLeaseGuard.Held, the lease term permits already used). The
guard logs its first grant once, as "re-granted after N refused renewal(s)"
when renewals were refused first (a restart before the forced-move barrier),
with the request-start time in unix_ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 34675c0930 blockvolume: no frontend listens and status is not primary-ready until the backend admits I/O
A restarted old holder (G-O2 r8) started its NVMe target unconditionally
at startup and reported FrontendPrimaryReady=true from the authority view
alone, before and after its chunk-layer claim was refused ("fenced, not
serving"). The admit gate refused every command with Namespace Not Ready,
but that status is retried on the same path and then fails to the guest,
and the path advertised ANA optimized, so a listening, ready-looking but
fenced target is not safe.

- status: FrontendPrimaryReady is false while the volume's local durable
  backend admits no I/O (attach pending, fenced, detached), with the
  backend's evidence in the new NotReadyReason; Healthy stays the authority
  view.
- blockvolume: the iSCSI, NVMe and ublk targets start only once the backend
  first admits I/O (awaitBackendAdmitsIO, 10 ms); signals and the workspace
  lease guard now start before that wait, and a stop requested during it
  skips the frontends and goes straight to shutdown.

INV-FE-PRIMARY-READY-OPERATIONAL-001 (304 rows, 218 ACTIVE); M1 Recovering
-> Serving names the guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiu 564c0df27f fix(blockvolume): restore workspace drain diagnostic 2026-11-22 07:12:31 -08:00
pingqiuandClaude Opus 5.5 f557cdfbc8 test: positive per-recipient evidence in the gate; the unknown owner's exact placeholder
Test review of #429 79d5d9f7:
- wrongOwnerEndpoints fails a recipient whose log cannot be read or shows no forced-epoch
  delivery, so each recipient must positively receive the owner's line.
- The unknown-owner unit check requires the volume unsupported or exactly the
  no-observation placeholder (no server, the line's endpoints), so neither s1's nor s2's
  report may supply it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:10:15 -08:00
Ping Qiu 46d998af50 Merge pull request #427 from seaweedfs/docs/owner-label-simulation-index
docs: publish model results and behavioral comments without internal references
2026-11-22 06:59:20 -08:00
pingqiuandClaude Opus 5.5 79d5d9f798 fix: one owner decision (PublishedLine.Owner); a moved line with an unknown owner takes facts from no server
Design review of #429 (V1-SPEC r2.40, INV-AUTH-HOLDER-IDENTITY-001, TERM-HOLDER-001):
- PublishedLine.Owner is the single owner decision (move-named server; move-named but
  unknown; not from a move), called by Host.workspaceLineOwner and expectOwnerForLine.
- A move-minted line whose owner is unknown binds its replica to no server: no health,
  endpoints or refresh from anyone (control: the placement server's fresh report changes
  nothing). Only a line no move minted keeps the accepted topology.
- var _ lineOwnerReader = (*Publisher)(nil): dropping the method is a build error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:55:01 -08:00
pingqiuandClaude Fable 5.2 2cf83f5922 ci: public-text check self-test: a failing grep refuses
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:53:20 -08:00
pingqiu eb906bb4ff fix: retain marker-free permanent errors and log unknown types once 2026-11-22 06:49:08 -08:00
pingqiu 8e721baa3c Merge branch 'docs/owner-label-simulation-index' into fix/frontend-error-class 2026-11-22 06:42:27 -08:00
pingqiu b602330daa fix: apply explicit retry precedence to backend cause trees 2026-11-22 06:42:26 -08:00
pingqiu a9ff14e232 test: use explicit external bind and validate readiness response schema 2026-11-22 06:38:53 -08:00
pingqiu 0a01e8156c test: use neutral startup qualification names 2026-11-22 06:34:39 -08:00
pingqiu 184088407c Merge remote-tracking branch 'origin/main' into fix/frontend-error-class
# Conflicts:
#	docs/design/invariants.md
2026-11-22 06:34:00 -08:00
pingqiu 83751bbaef fix: preserve permanent causes across joined backend errors 2026-11-22 06:33:38 -08:00
pingqiuandClaude Fable 5.2 eba1949fb1 ci: public-text check: header-like added lines, backslash paths, unreadable inputs
An added line that begins with '++ ' is an added line, not a diff header;
the share path is matched with either slash; a missing title or
description file, an unknown commit or a failing grep is an error (exit 2),
never 'clean'. Controls for each in the self-test; each fails on the
previous script.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:32:48 -08:00
pingqiu 8bf4428682 Merge remote-tracking branch 'origin/main' into ci/g4-planned-handoff
# Conflicts:
#	.github/workflows/test.yml
2026-11-22 06:29:53 -08:00
pingqiu 4a517ed9ae test: qualify supervised target started before its clean move 2026-11-22 06:29:14 -08:00
pingqiu 5e7728e65a docs: keep model results and identity comments public-facing 2026-11-22 06:28:48 -08:00
pingqiuandClaude Fable 5.2 abff195976 ci: refuse internal names in a pull request's public text
A check on the lines a pull request adds, its commit messages, its title
and its description: internal seat names and internal file-share paths
are refused, each hit printed with file and line. Runs beside the spec
trace check from the base branch; no pull request code is run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:27:33 -08:00
pingqiu 027c161719 docs: state nonzero observed-lineage requirement for superseded exit 2026-11-22 06:21:22 -08:00
pingqiuandClaude Opus 5.5 38732f5e88 docs: INV-AUTH-HOLDER-IDENTITY-001 traces the moved line's owner binding and its tests (#425)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:21:18 -08:00
pingqiu d7b7f2a432 test: observe retry exit before checking its restarted process 2026-11-22 06:19:50 -08:00
pingqiu e1edfe04da fix: apply zero-lineage retry rule to observed and adopted facts 2026-11-22 06:19:34 -08:00
pingqiu 2332cba696 test: assert observed lineage precedes every adoption handoff 2026-11-22 06:09:57 -08:00
pingqiuandClaude Opus 5.5 77873e8d54 test: the moved line's replica candidate comes from its owner (#425 unit red + control)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:09:05 -08:00
pingqiuandClaude Opus 5.5 290b43c58b fix: a moved line's replica is expected on its owner, so no other server refreshes its endpoints
#425 (V1-SPEC r2.40, INV-AUTH-HOLDER-IDENTITY-001): the topology controller took the line
replica's facts from the server the accepted topology names (the old host after a forced
move); the returning old host's report raised an endpoint refresh that republished the
line (EV+1, owner s2) with s1's endpoints. BuildSnapshot now binds the expected slot of the
line's replica to the move-named owner (PublishedLine.IssuedHost), so that replica's
health, endpoints and refreshes come only from the owner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:09:05 -08:00
pingqiu 764a208f4e fix: share supersession comparison across named lineage evidence 2026-11-22 06:05:41 -08:00
pingqiu 2ffcafb11f merge: update startup retry onto Train A identity rules 2026-11-22 06:01:49 -08:00
pingqiuandClaude Opus 5.5 d73acc54e9 test: #425 red: the forced move's epoch-2 lines carry the new owner's endpoints (procedure gate)
Brings the two-process procedure gate (origin/test/procedure-gate, its three test
files) onto main and adds the assertion to TestProcedureForcedMoveWithTheOldHostReturning:
every assignment line delivered at the forced epoch, to s2 and to the returning s1, carries
s2's own data and control endpoints (V1-SPEC r2.40, INV-AUTH-HOLDER-IDENTITY-001).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:00:00 -08:00
pingqiu 94a6c0de4b docs(spec): index owner-label simulations and clarify trace units 2026-11-22 05:58:38 -08:00