Commit Graph
2320 Commits
Author SHA1 Message Date
pingqiu 2edbee16b7 fix(storage): fence prior incarnation CAS before reopening I/O 2026-11-21 12:16:46 -08:00
pingqiu 746b6d59f7 test(storage): include a delayed first-cut create on reopen 2026-11-21 12:15:41 -08:00
pingqiu c61445461a test(durable): require a local reopen claim before serving 2026-11-21 12:14:12 -08:00
pingqiu 7fb9468742 test(storage): reopen the WAL for the replacement process 2026-11-21 12:12:39 -08:00
pingqiu a4b0a431f2 test(storage): reproduce late same-owner CAS after reopen 2026-11-21 12:12:07 -08:00
Ping Qiu 1628604983 Merge pull request #362 from seaweedfs/train/20261121-10
train 10: invariant check, rpc seam, control bind, UNKNOWN precedence, scheduled snapshots, offline seal, restore CLI, CI routing
2026-11-21 10:29:43 -08:00
pingqiuandClaude Opus 5.5 8db62cb989 docs(invariants): recount the ledger line for the composed train
Each member stated the count for its own rows on main; together the
tables hold 163 rows (141 ACTIVE, 19 STUB, 3 ARCHIVED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:49:32 -08:00
pingqiu fbfa84fe37 Merge remote-tracking branch 'pr/359' into train10 2026-11-21 08:49:15 -08:00
pingqiu 4d2603659c Merge remote-tracking branch 'pr/361' into train10 2026-11-21 08:49:15 -08:00
pingqiu 503ce05340 Merge remote-tracking branch 'pr/358' into train10
# Conflicts:
#	docs/spec/README.md
2026-11-21 08:49:04 -08:00
pingqiu 7daf5d9c5b Merge remote-tracking branch 'pr/347' into train10 2026-11-21 08:48:50 -08:00
pingqiu e0f1a909e7 Merge remote-tracking branch 'pr/356' into train10 2026-11-21 08:48:50 -08:00
pingqiu 6ba36965a2 Merge remote-tracking branch 'pr/357' into train10 2026-11-21 08:48:50 -08:00
pingqiu 60de0a4da8 Merge remote-tracking branch 'pr/354' into train10 2026-11-21 08:48:50 -08:00
pingqiuandClaude Opus 5.5 0fd141b030 fold: restore create prints one JSON document on stdout; a refused start says the target exists
With --status-addr the create result goes to stderr, so stdout carries only
the driver status (one JSON document). A driver start refused after the create
(for example the target is not attached at that blockvolume yet) adds a line
saying the target was created and the --volume command that starts the
restore once it is attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:36 -08:00
pingqiuandClaude Opus 5.5 13000c1d13 docs: INV-SHARE-ACTIVATION-001 is enforced in sealSnapshot, shared by explicit and scheduled snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:10 -08:00
pingqiuandClaude Opus 5.5 720fe00f23 sw-block: ops chunk restore creates the restore volume (--source --snapshot --target)
sw-block ops chunk restore --source --snapshot --target creates the target
from the snapshot with Catalog.Restore (idempotent by --request-id) and, with
--status-addr naming the blockvolume that serves the target, starts the
restore driver there in the same command and prints both results. Without
--status-addr it creates the target and prints the command that starts the
driver once the target is attached. --volume keeps driving an existing
restore. README lists both forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:43:47 -08:00
pingqiu 346e644c91 Merge remote-tracking branch 'origin/main' into fix/workspace-uncertain-precedence 2026-11-21 08:31:37 -08:00
pingqiuandClaude Fable 5.2 d8c0ffc741 Merge main (record the parent the previous commit lacked)
The previous commit carried the tree of main plus this change but named
only one parent, so the branch looked diverged. Same tree, both parents.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 08:31:06 -08:00
pingqiuandClaude Opus 5.5 85b6e9c9a0 docs: resolve the merge's invariants.md hunks (left unresolved in the merge commit)
The Train 9 merge committed conflict markers in docs/design/invariants.md. Both
sides added a B.2 row after the same anchor: keep main's
INV-MASTER-JOURNAL-ISOLATION-001 and this PR's INV-SEC-CONTROL-BIND-001, and
recount the Part B summary from the tables (161 rows: 139 ACTIVE, 19 STUB,
3 ARCHIVED, 146 new).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:30:34 -08:00
pingqiu 860ea15ac3 Merge remote-tracking branch 'origin/main' into feat/scheduled-snapshots
# Conflicts:
#	core/host/volume/chunk_control.go
2026-11-21 08:30:09 -08:00
pingqiuandClaude Fable 5.2 5c14e42b42 Merge main: the check runs on the current document
Three stale test names it found are fixed (one rename, one test removed
with the retired engine and replaced by its neighbour, one name that
exists nowhere). The count check accepts the document's wording.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 08:30:03 -08:00
pingqiu 08df12ff47 test: use the closed gate readiness interface 2026-11-21 08:30:01 -08:00
pingqiuandClaude Opus 5.5 b8d5b3bc13 Merge origin/main ee92613b (Train 9) into the external-bind refusal
Only conflict: the Part B summary line, recounted from the tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:50 -08:00
pingqiuandClaude Opus 5.5 84d43da3b5 Merge origin/main ee92613b (Train 9) into the gRPC link seam
Only conflict: the Part B summary line; recounted from the tables (161 rows:
139 ACTIVE, 19 STUB, 3 ARCHIVED, 146 new). Train 9 brought no new raw gRPC
site: the guard passes on the merged tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:32 -08:00
pingqiuandClaude Opus 5.5 09cac1bcf2 ci: run the full suites on the per-train test VM, not on the shared runner
Main pushes and train PRs run the light set only; the legacy-fixture
job is removed. Each train runs both full configurations on a
separate test VM before it merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:29 -08:00
pingqiu 5b8ddefeec Merge remote-tracking branch 'origin/main' into fix/offline-seal-caller-deadline
# Conflicts:
#	docs/design/invariants.md
2026-11-21 08:29:19 -08:00
pingqiu 889a85eab4 fix: require a bounded offline seal request and use M5 names 2026-11-21 08:28:29 -08:00
pingqiu 9be118360a test: refuse offline HTTP seals without an explicit bound 2026-11-21 08:28:00 -08:00
Ping Qiu ee92613b18 Merge pull request #355 from seaweedfs/train/20261121-9
train 9: independent restore B, chunk verify, E2 seams, COW spill cap, invariant rows, test fixes
2026-11-21 08:27:53 -08:00
pingqiu 3588903f6f docs: condense offline seal transition statement 2026-11-21 08:16:22 -08:00
pingqiu d75c61cff5 feat: seal idle volumes under the caller deadline 2026-11-21 08:14:16 -08:00
pingqiu 1b780fe940 test: offline detach HTTP preserves caller deadline 2026-11-21 08:11:59 -08:00
pingqiu 49f083acdf test: witness the offline cut timer deadline 2026-11-21 08:10:44 -08:00
pingqiu 296bb664d2 test: offline seal inherits the caller deadline 2026-11-21 08:10:23 -08:00
pingqiuandClaude Opus 5.5 163560c691 docs: upgrade note for --insecure-external-bind
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:55:09 -08:00
pingqiuandClaude Opus 5.5 93f6008f13 docs: INV-SEC-CONTROL-BIND-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:51:11 -08:00
pingqiuandClaude Opus 5.5 6070108c5c blockmaster: refuse a non-loopback control bind unless --insecure-external-bind
The gRPC control API (--listen) and the runtime HTTP API
(--frontend-publication-runtime-listen, when enabled) are unauthenticated, so
binding them to the node network is now an explicit choice: a non-loopback
address is refused at startup unless --insecure-external-bind is given. The
Helm chart and the shipped k8s manifests, which bind 0.0.0.0 with host
networking, pass the opt-in explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:50:53 -08:00
pingqiuandClaude Opus 5.5 5e4f2f3d45 storage, durable: cuts are ordered by an in-process CutSeq, never by wall stamps; the periodic decision skips once CutSeq moved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:12:20 -08:00
pingqiu 746c5a1a8a fix: classify workspace caller end from request context 2026-11-21 07:05:29 -08:00
pingqiuandClaude Opus 5.5 41fffe6c5a durable: the periodic-cut timer and the scheduled-snapshot schedule run on in-process monotonic time; a restart starts a fresh schedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:01:26 -08:00
pingqiu 6e57df9a50 test(authority): expose dependency timeout misclassified as caller end 2026-11-21 06:59:26 -08:00
pingqiuandClaude Opus 5.5 9cf35805e1 fold: the guard flags a constructor taken as a function value, not only called
Any use of grpc.NewClient / Dial / DialContext / NewServer or
insecure.NewCredentials counts (f := grpc.NewClient builds a raw link just the
same), qualified under any import name or unqualified under a dot import;
fixtures for a function value, an aliased value and a dot-imported value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:46:04 -08:00
pingqiu 2cda71d4c3 docs(authority): map uncertain move reply precedence 2026-11-21 06:45:08 -08:00
pingqiu 677e0a50d4 fix(authority): report uncertain move outcomes before refusals 2026-11-21 06:43:27 -08:00
pingqiu f30d91fec5 test(authority): expose uncertain move refusal precedence 2026-11-21 06:38:49 -08:00
pingqiuandClaude Opus 5.5 7fff8f288e fold: injected failback dial through link.DialWith; AST guard covers raw client constructors and import aliases
- link.DialWith(target, opts...) builds a link with exactly the caller's
  options (no default credentials); the failback runtime uses it for injected
  options, so its prior semantics hold and no production file calls
  grpc.NewClient directly.
- The guard parses every non-test file and finds grpc.NewClient / Dial /
  DialContext / NewServer and insecure.NewCredentials under any import name
  (alias or dot import); a detector test proves each form is found and a
  link-only file is clean; routing failback back to grpc.NewClient fails the
  guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:38:41 -08:00
pingqiu 247dba50b1 Merge remote-tracking branch 'origin/main' into trial9b 2026-11-21 06:38:12 -08:00
Ping Qiu 7d431475c3 Merge pull request #352 from seaweedfs/ci/reduce-test-writes
ci: Draft PRs skip the Go suite; legacy-fixture pass on main and trains only
2026-11-21 06:37:52 -08:00
pingqiuandClaude Opus 5.5 a600bb8e2b rpc/link: one dial helper and one server builder for every gRPC link
core/rpc/link builds every gRPC link: Dial is grpc.NewClient with plaintext
credentials exactly as before (caller options follow), NewServer runs the
caller's unary and stream interceptors in order (none by default). Every
production site now goes through it: nine dials to blockmaster, the two
SeaweedFS dials and both servers; the failback runtime keeps its injected
dial options unchanged. No behaviour change.

INV-SEC-ONE-SEAM-001: a guard test fails if a non-test file outside the
package creates insecure credentials or a raw gRPC server (red on the base: it
lists the 12 files with the 13 raw sites).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:24:58 -08:00