Commit Graph
3224 Commits
Author SHA1 Message Date
Ping Qiu 4a86e06748 Merge pull request #564 from seaweedfs/test/oss-snap-head-guard
test: every transition refuses a stale holder
2026-11-24 15:42:38 -08:00
Ping Qiu be8ebf1748 Merge pull request #563 from seaweedfs/feat/oss-snap-clean-session
layout: open and close a cleaning session
2026-11-24 15:30:28 -08:00
Ping Qiu 054a1b0cdc Merge pull request #562 from seaweedfs/feat/oss-snap-claim
layout: the Claim transition
2026-11-24 15:24:26 -08:00
Ping Qiu a18bc55b86 Merge pull request #561 from seaweedfs/feat/oss-snap-commit
layout: the Commit transition
2026-11-24 15:18:27 -08:00
Ping Qiu a74416368d Merge pull request #566 from seaweedfs/test/known-zero-sysfs-resolver
test: resolve the KNOWN-ZERO kernel device from sysfs
2026-11-24 15:14:13 -08:00
Ping Qiu cca045eedb Merge pull request #559 from seaweedfs/feat/oss-snap-abort
layout: the Abort transition
2026-11-24 15:08:21 -08:00
Ping Qiu de291e60e4 Merge pull request #556 from seaweedfs/test/known-zero-acceptance
test: KNOWN-ZERO acceptance test on a fresh volume
2026-11-24 15:00:34 -08:00
Ping Qiu 71a58d5f97 Merge pull request #558 from seaweedfs/feat/oss-snap-begin
layout: HEAD record and the Begin transition
2026-11-24 14:53:55 -08:00
Ping Qiu 7abbbef165 Merge pull request #553 from seaweedfs/test/node-loss-gate-no-auto-promotion
testops: node-loss gate checks no automatic promotion, then the same primary serves
2026-11-24 14:20:40 -08:00
pingqiuandClaude Opus 5.5 ed2c56d3f0 test: refuse a partial sysfs inventory in the KNOWN-ZERO resolver
An unreadable directory or file was read as empty, so a partial inventory
could resolve as exactly one device; fs.Glob also dropped directory
errors during discovery. Every read error now refuses (the wait retries),
discovery lists nvme-subsystem and reads each subsysnqn, and the
literal-path fixture holds that path as an NQN so only the prefix guard
refuses it. Adds three partial-inventory controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:11:58 -08:00
pingqiu 6dd9dd99c3 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 14:01:34 -08:00
pingqiu 009f0dd94d Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 14:00:50 -08:00
pingqiu 8a07188cc8 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 14:00:13 -08:00
pingqiu 8b0b2901b4 Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 13:59:49 -08:00
pingqiu d357fe902e Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort 2026-11-24 13:59:07 -08:00
pingqiuandClaude Opus 5.5 1506cc5a7a test: classify the layout transitions' HEAD read
The HEAD reader enumeration finds the layout package's one read path,
runTransition. Over an absent HEAD it refuses with ErrHeadAbsent and
writes nothing; a probe pins it with a store whose HEAD is absent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:58:26 -08:00
pingqiuandClaude Opus 5.5 fe095efb2e test: resolve the KNOWN-ZERO kernel device from sysfs
nvme list-subsys -o json does not list namespaces on every nvme-cli, so
the device never resolved on a real host although the kernel connected.
kzResolve now reads /sys/class like the CSI node (subsysnqn, controllers,
transport, serial, namespaces under the subsystem or the controller) with
the same refusals, and a timeout reports the last refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:55:35 -08:00
pingqiuandClaude Opus 5.5 05ebed50c2 test: keep the status endpoint on loopback when the harness listens off loopback
blockvolume refuses a non-loopback status bind; sw-block ops reach it
with --status-addr from the same host, so it uses headSzLoopbackAddr
like the NVMe listener.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:49:22 -08:00
pingqiu 71011fd362 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:57 -08:00
pingqiu 65a78ec8b8 Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:52 -08:00
pingqiu ca534fe118 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:49 -08:00
pingqiu da6bdce568 Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:46 -08:00
pingqiu 8aef3e04cb Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:43 -08:00
pingqiu 48dd0c5422 Merge remote-tracking branch 'origin/main' into feat/oss-snap-begin
# Conflicts:
#	docs/design/invariants.md
2026-11-24 13:38:41 -08:00
Ping Qiu c54ba73cd9 Merge pull request #560 from seaweedfs/docs/public-rule-comment-names
docs: describe public rules in comments
2026-11-24 13:38:17 -08:00
pingqiuandClaude Fable 5.1 eb471459de test: keep the NVMe/TCP listener on loopback when the harness listens off loopback
blockvolume refuses a non-loopback frontend listen; the test reaches its
NVMe target only from the same host (user-space client or kernel nvme
connect), so the NVMe address stays 127.0.0.1 (headSzLoopbackAddr) while
data and ctrl use SWBLOCK_TEST_LISTEN_HOST.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-24 13:29:39 -08:00
pingqiuandClaude Fable 5.1 6f24d3bfbe test: pass --insecure-external-bind when the harness listens off loopback
blockmaster refuses a non-loopback --listen without it; a two-host run
(SWBLOCK_TEST_LISTEN_HOST set) now passes it. Loopback runs are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-24 13:24:47 -08:00
pingqiuandClaude Opus 5.5 cb3f23e373 docs: snapshot kernel ledger rows for this step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:16:05 -08:00
pingqiu 8a8c436fbc Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 13:15:55 -08:00
pingqiuandClaude Opus 5.5 f213daf8a5 docs: snapshot kernel ledger rows for this step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:15:52 -08:00
pingqiu 08bd6ce82a Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 13:15:50 -08:00
pingqiuandClaude Opus 5.5 202c2392d1 docs: snapshot kernel ledger rows for this step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:15:48 -08:00
pingqiu ce47a165b5 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 13:15:36 -08:00
pingqiuandClaude Opus 5.5 02b4a476da docs: snapshot kernel ledger rows for this step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:15:32 -08:00
pingqiu e9ef47c7ff Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 13:15:28 -08:00
pingqiuandClaude Opus 5.5 1307b8c125 docs: snapshot kernel ledger rows for this step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:15:24 -08:00
pingqiuandClaude Opus 5.5 613556ad5a docs: the snapshot kernel machine and its first ledger rows
Part A gains M9, the HEAD transactions of the content-named layout
library (diagram and transition table, Begin so far), and Part B gains
B.10 with the rows its tests enforce: canonical names and encodings,
the one HEAD write path, the HEAD encoding, and Begin. The library has
no production caller; the notes say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:15:17 -08:00
pingqiu 70733dea30 Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort 2026-11-24 13:15:17 -08:00
pingqiuandClaude Opus 5.5 f31db828e7 test: stale-holder table covers another server and every transition
Each transition is refused for an older epoch of the same server and
for the same epoch held by another server, in idle, snap and clean; the
table must name every Head method returning (Head, bool, error), so a
new transition fails until it is added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:12:45 -08:00
pingqiu 43811e9907 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 13:12:07 -08:00
pingqiuandClaude Opus 5.5 4accfbf9ed layout: EndClean over idle means only that no activity remains
EndClean over idle succeeds without a write whether the cleaning ended
or never began. A same-epoch caller that is another server is refused
(control added; with the holder check reduced to the epoch it fails).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:12:06 -08:00
pingqiu 93cbe70c28 Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 13:11:29 -08:00
pingqiu d7716c8acb Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 13:11:20 -08:00
pingqiu 84600a52fb Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 13:11:19 -08:00
pingqiu acd48588fa Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort 2026-11-24 13:11:17 -08:00
pingqiuandClaude Opus 5.5 3f68247013 test: the missing-lease control replaces claim.go
Added beside the real claim.go, the control's RunClaim was hidden by
the real one's lease wait once claim.go exists; it now replaces the
file, as a changed claim would.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:11:16 -08:00
pingqiu bf19fe72f6 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 13:09:53 -08:00
pingqiuandClaude Opus 5.5 cfffb3fd7a layout: commit on an empty published image; walk the reached graph
An empty image is a real root: once it is HEAD's current root, a commit
with an empty previous manifest builds on it instead of being refused
as a stale base. Before any commit a previous manifest must be empty;
after one it must build to HEAD's current root.

The snapshot transaction's interrupt test now checks, right after each
kill, every object any root in HEAD reaches (current and snapshot roots,
their segments, this volume's chunks, bytes hashed against names), on a
fixture that stores real objects. Controls delete a reachable chunk, a
segment or a snapshot root, or tamper with a chunk, and each is
reported. Abort after a commit leaves the commit in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:09:53 -08:00
pingqiuandClaude Opus 5.5 bba3c97841 layout: Abort over idle means only that no activity remains
Abort when HEAD is already idle succeeds without a write whatever came
before (aborted, committed or never begun); its result never says
whether the session's work was committed, which is read from HEAD's
current root. Controls cover the never-begun and already-aborted cases.
The interrupt helper again requires exactly one HEAD write per
transition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:08:20 -08:00
pingqiu e6332c97ae Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 13:08:20 -08:00