Commit Graph
3468 Commits
Author SHA1 Message Date
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
Ping Qiu 0218544115 Merge pull request #426 from seaweedfs/train/20261122-22
Train 22 (P0 train A): Part T, primary holder identity, one server id per host, one line-owner function
2026-11-22 05:56:58 -08:00
pingqiu 9972921e6b Merge #411 + #416 + #423: holder identity (server id + replica id), one server id per host, one line-owner function
# Conflicts:
#	docs/design/invariants.md
2026-11-22 05:23:44 -08:00
pingqiu 38aa1f529b Merge #422: Part T, terms bound to code 2026-11-22 05:23:07 -08:00
pingqiu d65ac54ffb fix(master): capture line owner and bind its model trace 2026-11-22 05:22:16 -08:00
pingqiuandClaude Opus 5.5 31878ce8d8 docs: re-apply the #416 trace on #411's final docs: Part A guards, volume diagram edge, INV-AUTH and NONBLOCKING rows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:22 -08:00
pingqiuandClaude Opus 5.5 a2e9930d49 fix: the iSCSI multipath grouping binds IQN and LUN; NONBLOCKING row names the live renewal control
codex01 review of #416 2cba5881: two primary-owned units of one IQN (q/LUN1 at A, q/LUN2
at B) are two targets, never one multipath target with LUN1 for both. Control added.
INV-WS-RENEW-NONBLOCKING-001 lists TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 8d103b2c85 fix: iSCSI CSI paths bind IQN and LUN; live-renewal held-registration control; lease diagram guard
codex01 review of #416 3439d278 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1: primaryOwnedFrontends keys an iSCSI target by IQN AND LUN, so a supporting q/LUN2 never
  becomes a multipath path of the primary's q/LUN1 (mismatch and nonzero-match controls).
- P2: TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite renews through holderMatches over
  gRPC while a registration write is held (NodeInventoryStore.HoldWritesForTest), and shows
  the hold is real.
- Standards: the workspace lease diagram's holder edges name the registered-host guard; the
  snapshot test's control reader has a bounded, owned join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 e7d0114b1d docs: the volume role diagram's adopt edge names the registered-host delivery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 abc57ceb61 fix: registry read from a committed snapshot; CSI publishes only a primary-owned target; deletion keeps the stream check
codex01 review of #416 e56f1de1 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1-1: the holder host check reads NodeInventoryStore.GetNodeSnapshot (published after each
  committed write), never the store mutex RegisterNode holds across file I/O.
  Held-registration-write control in core/lifecycle.
- P1-2: a primary slot with no frontend lists nothing; status frontends carry their replica
  (FrontendTarget.replica_id = 8); CSI publishes a target only when the primary has a usable
  frontend, another replica's frontend joining only as an extra path to the same target.
  Real CSI lookup negatives (no primary frontend; rejected loopback primary).
- P2: a deletion-reserved workspace volume keeps the assignment stream host check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 fc6365232b fix: no portal without the primary's holder evidence; the primary row is the issued holder
codex01 review of #416 (INV-AUTH-HOLDER-IDENTITY-001):
- P1: when the line's server has no evidence for the primary, QueryVolumeStatus lists no
  frontend, so CSI never publishes a supporting replica's frontend under the primary.
  Real CSI ControlStatusLookup negative (old host only: not found) and positive cases.
- P2: the primary replica row (server id, node, frontend) is the issued holder as a whole.
- Row: guard trace (Enforced in), tests, host scope and limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 772cdef3ae test: the workspace assignment stream names its server id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 cf40f8a5b5 test: in-process workspace RPCs carry a loopback peer; workspace holders are registered
The holder host check (INV-AUTH-HOLDER-IDENTITY-001) reads the gRPC network peer and
requires a registered server id; tests that call the service in-process now arrive as
from 127.0.0.1, and tests that renew as node-a register it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 b38462d01a fix: workspace holder RPCs refuse a server id from a host other than its registered one
INV-AUTH-HOLDER-IDENTITY-001 (claude06 review of #416; claude01 decisions):
- holderMatches (lease renew and revocation ACK) refuses an unregistered server id and a
  call whose gRPC network peer is not on the host registered for its server id.
- SubscribeAssignments refuses the same for a workspace volume, so the line is never
  delivered to a second host with a copied --server-id; SubscribeRequest carries the
  subscriber's server_id (field 4), sent by the volume.
- Refusals are logged. The heartbeat check stays (observations).
- Limits: trusts the network peer address (no NAT or proxy between volume and master in
  OSS); not authentication.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 f53bddf24e test: displayed primary is the issued holder, not the placement slot; id renamed to INV-AUTH-HOLDER-IDENTITY-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 9db53255ff test: derive the holder's portal from the fixture; documentation-range address for the stale claim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 5c912694b1 fix: one server id names one host; portal and primary from the line server
INV-ASSIGNMENT-HOLDER-IDENTITY-001.
- ReportHeartbeat refuses (FailedPrecondition) a heartbeat whose slot addresses are
  on a host other than the one registered for its server id. Only the host part is
  compared; several server ids on one host stay allowed; an unregistered id has
  nothing to contradict.
- QueryVolumeStatus lists the primary's frontends from the server on the authority
  line (workspaceSourceHost), never a fresher same-replica claim from another server.
- ClusterStatus primary node is the line's server (issued holder), not placement, and
  the primary replica's evidence and publish target come only from that server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 6ff7a6a2b7 test: red: a server id from a second host; portal and primary from the line server
INV-ASSIGNMENT-HOLDER-IDENTITY-001: the same --server-id reported from a host other
than its registered one must be refused, and the CSI portal and displayed primary must
come from the server on the authority line, not the freshest heartbeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiu c4720afa3a docs(status): regenerate warning schema for routing diagnostics 2026-11-22 04:43:09 -08:00
pingqiu 6419035850 Merge remote-tracking branch 'origin/main' into test/procedure-gate 2026-11-22 04:31:43 -08:00
Ping Qiu 06067e2271 Merge pull request #424 from seaweedfs/train/20261122-21
Train 21: hostlimit urgent-pending + launch checks, standalone planned handover test
2026-11-22 04:30:44 -08:00
pingqiu f388f2c357 docs(authority): reconcile exclusion guard and repair invariant status 2026-11-22 04:25:22 -08:00
pingqiu 165c6b0330 docs(authority): trace same-epoch candidate admission refusal 2026-11-22 04:10:56 -08:00
pingqiu 2ff0e765d9 fix(volume): retain recorded owner for an assignment epoch 2026-11-22 04:10:34 -08:00
pingqiuandClaude Opus 5.5 ef3d1d03f6 docs: Part T, the refusal to adopt is the holder safety rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:10:28 -08:00
pingqiu 56cd0275db test(volume): reject same-epoch changes of recorded owner 2026-11-22 04:10:04 -08:00
pingqiuandClaude Opus 5.5 501d68ea06 test: harness ports below the kernel's ephemeral range
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:01:47 -08:00
pingqiu c8522ed198 test: retain stale assignment before foreign delivery then replay 2026-11-22 04:01:34 -08:00
pingqiu f951c0102c fix: refuse stale self assignment behind observed foreign lineage 2026-11-22 04:00:11 -08:00
pingqiu 22037e1ce5 test: trace forced-move deliveries and reject stale self replay 2026-11-22 03:59:20 -08:00
pingqiuandClaude Opus 5.5 0d4a511954 docs: Part T, the line owner is carried in the published line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:55:00 -08:00
pingqiu 9f54c4f155 test: equal foreign replay does not supersede an adopted holder 2026-11-22 03:52:43 -08:00
pingqiuandClaude Opus 5.5 1ad3218fa9 test: a recorded foreign assignment counts as the old host's refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:52:16 -08:00
pingqiu e6a996cca1 fix: treat advertised endpoints as routing data not holder identity 2026-11-22 03:51:13 -08:00
pingqiu 0a0eeb72cc test: own holder adopts endpoint aliases and reports warning 2026-11-22 03:50:15 -08:00
pingqiu 951c0f020c diagnostics: show assignment endpoint and lineage refusal inputs 2026-11-22 03:45:11 -08:00
pingqiu e803a8269b test: retain early endpoint and same-epoch supersession controls 2026-11-22 03:40:08 -08:00
pingqiu 1d4e29a07a fix: fence foreign facts only after adopted lineage is superseded 2026-11-22 03:39:13 -08:00
pingqiu 66e0dae7ff test: withdraw endpoint special case and pin foreign stream ordering 2026-11-22 03:38:52 -08:00
pingqiu da9d92c691 fix: recover own endpoint refusal on valid readiness replay 2026-11-22 03:35:52 -08:00
pingqiu d5c8d76145 test: reproduce own handoff poisoned before readiness replay 2026-11-22 03:34:59 -08:00