Commit Graph
3468 Commits
Author SHA1 Message Date
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
pingqiu f2ba5fc0a6 Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort 2026-11-24 13:07:36 -08:00
pingqiuandClaude Opus 5.5 928e6a75aa test: the guard requires a declared claim to wait for the old lease
The lease rule checked whether the name RunClaim was used, not whether
the function was declared, so a declared RunClaim with no wait passed.
The guard now checks the package's declared functions: a declared
RunClaim must use OldLeaseEnded, and every declared exported Run
function must go through runTransition. Each negative control now
asserts the finding it is meant to cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:07:35 -08:00
pingqiuandClaude Opus 5.5 db3f092607 testops: the no-promotion hold fails as unproven without inventory reads; the recovered primary must report frontend ready
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:04:11 -08:00
pingqiuandClaude Opus 5.5 7d07c10349 testops: the node-loss gate checks no automatic promotion, then the same primary serves again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:59:26 -08:00
Ping Qiu 725fecbe6a Merge pull request #557 from seaweedfs/feat/oss-layout-read
layout: resolve an image root -> segment -> chunk
2026-11-24 12:58:41 -08:00
pingqiu 4432150344 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 12:55:08 -08:00
pingqiu c4dfbac39b Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 12:55:07 -08:00
pingqiu 7178c5c564 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 12:55:05 -08:00
pingqiu 5933f339ea Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 12:55:02 -08:00
pingqiu 38d480aa72 Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort
# Conflicts:
#	core/frontend/chunkstore/layout/head_test.go
2026-11-24 12:55:00 -08:00
pingqiuandClaude Opus 5.5 a842778c59 test: the HEAD guard sees every use of a writer name, not only calls
The guard now records every use of UpdateHead, runTransition,
OldLeaseEnded and Delete/Remove names, in function bodies and in
package-level initializers: a call, a method value or alias, a method
expression and an inline interface all count. Negative controls add
each form to the package's real sources and must be refused. The
comments on invalid UTF-8 now state what the old encoding did: it wrote
an escaped U+FFFD that its own canonical decode refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:54:44 -08:00
Ping Qiu c52efbb5ee Merge pull request #551 from seaweedfs/fix/no-reassign-on-unknown-primary
fix(master): never reassign on a current primary that did not answer
2026-11-24 12:52:28 -08:00
pingqiu 63addbca44 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 12:48:27 -08:00
pingqiu 6b40997f41 Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 12:48:26 -08:00
pingqiu 4756b34a93 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 12:48:24 -08:00
pingqiu 095093a571 Merge branch 'feat/oss-snap-abort' into feat/oss-snap-commit 2026-11-24 12:48:23 -08:00
pingqiu 44e3e5a31a Merge branch 'feat/oss-snap-begin' into feat/oss-snap-abort
# Conflicts:
#	core/frontend/chunkstore/layout/head_test.go
2026-11-24 12:48:22 -08:00
pingqiuandClaude Opus 5.5 84746790e9 layout: refuse HEAD names that are not valid UTF-8
The JSON encoding turns invalid UTF-8 into U+FFFD and still re-encodes
the same, so HEAD would store another holder, session, snapshot or
dependent name than the caller gave and a later lookup by that name
would find nothing. check() refuses such names, and runTransition
checks the next HEAD before writing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:47:56 -08:00
pingqiu 288c5f76f7 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard 2026-11-24 12:43:47 -08:00
pingqiuandClaude Opus 5.5 048db98b3c test: one interrupt test per cleaning-session transition
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:43:46 -08:00
pingqiu bb36507ba7 Merge branch 'feat/oss-snap-clean-session' into test/oss-snap-head-guard
# Conflicts:
#	core/frontend/chunkstore/layout/guard_test.go
2026-11-24 12:43:36 -08:00
pingqiu 88fa835e10 Merge branch 'feat/oss-snap-commit' into feat/oss-snap-claim 2026-11-24 12:43:11 -08:00
pingqiu 147bd1372a Merge branch 'feat/oss-snap-claim' into feat/oss-snap-clean-session 2026-11-24 12:43:11 -08:00
pingqiuandClaude Opus 5.5 ec5af310d3 test: kill a snapshot transaction at every write and restart it
The whole transaction (Begin, every new chunk, segment and root, then
Commit) is run once to enumerate its writes; for each it is killed
before the write applies and after it applied with its reply lost. The
restarted holder rolls back the session it finds open, begins a new
one, recomputes what is new against HEAD's current root, reuses the
objects already written by name and commits. Every run ends at the
committed image with every object it reaches present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:43:10 -08:00