Commit Graph
3468 Commits
Author SHA1 Message Date
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
pingqiuandClaude Opus 5.5 f0662dd31f test: an old host on its stale local root exits 78; on a fresh root, 75
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:08:31 -08:00
pingqiu bbd4b30b55 Merge branch 'pr436' into train/20261122-26 2026-11-22 09:04:10 -08:00
pingqiu 7076b54a23 Merge remote-tracking branch 'origin/main' into test/procedure-gate
# Conflicts:
#	cmd/blockvolume/planned_handoff_checks_test.go
#	cmd/blockvolume/planned_handoff_integration_test.go
#	cmd/blockvolume/procedure_gate_integration_test.go
2026-11-22 09:03:07 -08:00
pingqiu 115ae3651a test(workspace): document ACK validity edge and horizon controls 2026-11-22 09:02:36 -08:00
pingqiu 402a0d7479 refactor(workspace): defer seal proof integration until holder update 2026-11-22 09:02:35 -08:00
pingqiu b528a0c9ec fix(workspace): share detached proof and lease validity decisions 2026-11-22 09:02:35 -08:00
pingqiu be1337aeaa test(workspace): expose divergent lease validity decisions 2026-11-22 09:02:24 -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 e082155232 docs(deploy): explain no-restart outcomes and retry window 2026-11-22 08:48:38 -08:00
pingqiu 3dc1bac4c9 fix(deploy): bound blockvolume supervisor retries 2026-11-22 08:38:34 -08:00
pingqiu 376e40c91e test(deploy): expose unbounded blockvolume startup retries 2026-11-22 08:38:18 -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
pingqiuandClaude Opus 5.5 4098abca82 test: the procedure gate's captured outputs as fixtures
The move to s2, HEAD reclaimed by s2, the forced move, its dry-run
previews (refused with an admissible time, then admitted) and lost-range,
captured from a passing gate run, are read by the default-build check
test; each check also refuses a neighbouring output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:46:41 -08:00
pingqiuandClaude Opus 5.5 339932cb61 test: fold the procedure gate's test-tier review
- The old host returning after a forced move: the absence checks run only
  while it is alive; it must exit 75 and log a refusal; a supervised
  restart and a start on a fresh local root (a control: no stale root to
  refuse) must do the same. The refusal text that the product never
  prints is dropped.
- The same-host restart is the page's systemctl restart (SIGTERM, a start
  within RestartSec); the crash restart is its own test. Both must serve
  within 15 s, as s1/r1 at the same epoch.
- The barrier wait requires at least one barrier refusal, compares with
  one second of log resolution, and requires the re-grant line.
- Too early: the exit reason assignment_timeout, and the same serving
  predicate as the barrier wait.
- The planned hand-over runs the page's step 1 and reads a never-written
  block as zero (a control).
- The lapsed-lease return must serve within its 30 s authority wait, as
  s1/r1. Comments match the order of the revoke-without-ACK steps.
- Harness ports come from 10000-19999, below weed's range; sw-block output
  can be captured to HANDOFF_CAPTURE_DIR for the fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:33:12 -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