Commit Graph
2510 Commits
Author SHA1 Message Date
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 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
pingqiu 56cd0275db test(volume): reject same-epoch changes of recorded owner 2026-11-22 04:10:04 -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
pingqiu 9f54c4f155 test: equal foreign replay does not supersede an adopted holder 2026-11-22 03:52:43 -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
pingqiu 9d6b978d83 test: carry holder server in CLI master fixtures 2026-11-22 02:02:31 -08:00
pingqiu 6154b7299e test: cover failed placement commits and trace holder guards 2026-11-22 01:56:11 -08:00
pingqiu 90e25b939c fix: validate revocation ACK with the shared holder predicate 2026-11-22 01:46:21 -08:00
pingqiu 6e148b696a test: reject revocation ACK from a different holder server 2026-11-22 01:43:49 -08:00
pingqiu 7fed83180d docs: apply final primary holder invariant wording 2026-11-22 01:41:58 -08:00
pingqiu 447d0b1a3a docs: clarify primary holdership invariant scope 2026-11-22 01:41:44 -08:00
pingqiu 62d7f31912 docs: align holder identity sites with AUTHORITY ruling 2026-11-22 01:38:40 -08:00
pingqiu b1e973761a test: resolve an unknown revocation ACK by its exact recorded witness 2026-11-22 01:26:45 -08:00
pingqiu a86f07d71a docs: trace holder checks and nonblocking lookup to their invariants 2026-11-22 01:22:26 -08:00
pingqiu 476b5fceb9 fix: keep holder membership lookup off placement writer locks 2026-11-22 01:21:01 -08:00
pingqiu 55226e0f9e docs: pin the approved assignment and lease holder identity invariant 2026-11-22 01:18:16 -08:00
pingqiu d21304dc4f fix: expose foreign-holder refusal in the existing fenced journal 2026-11-22 01:10:06 -08:00
pingqiu eb12ec4c68 test: bound the multi-RPC holder scenario independently of fixture setup 2026-11-22 01:03:54 -08:00
pingqiu e76532be53 docs: disclose both directions of pre-release identity skew 2026-11-22 01:02:02 -08:00
pingqiu e966deea38 fix: retain a newer foreign-holder fence across stale replay 2026-11-22 01:01:17 -08:00
pingqiu 5d28c43504 test: reject foreign server identity across expired lease regrant 2026-11-22 00:59:46 -08:00
pingqiu 58839e5c2d fix: read committed holder identity without waiting for authority writes 2026-11-22 00:58:47 -08:00
pingqiu d2525156cc test: cover foreign-holder fencing and carried lease identity 2026-11-22 00:57:04 -08:00
pingqiu 14aaa35e1f test: provide explicit server identities in existing host fixtures 2026-11-22 00:56:08 -08:00
pingqiu 114fe6b74c fix: require server identity for assignment adoption and workspace leases 2026-11-22 00:52:25 -08:00
pingqiu 7ea0eb5132 test: retain nil pre-grant workspace snapshot in refusal control 2026-11-22 00:51:13 -08:00
pingqiu 61695b30ef test: compare optional lease snapshots without dereferencing nil 2026-11-22 00:50:55 -08:00
pingqiu b31577dea0 test: refuse lease grants renewals and regrants for a foreign server 2026-11-22 00:50:43 -08:00
pingqiu 5ca0611bd2 test: reject moved r1 assignments on the restarted old server 2026-11-22 00:49:03 -08:00
Ping Qiu ea276b450a Merge pull request #404 from seaweedfs/train/20261122-19
train 19: required setup docs, reachability words
2026-11-21 23:16:58 -08:00
pingqiu 648b36c8d3 Merge PR #402 2026-11-21 22:43:43 -08:00
pingqiu 70f196e286 Merge PR #398 2026-11-21 22:43:43 -08:00