Commit Graph
4015 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 e1a2cdd4e3 fix(chunkstore): the commit check returns at once for the checked commit in its open session
A re-proposal after an unknown outcome runs the commit check again before
its CAS; the check forgot the kept commit first and looked up every object
again. It now returns at once for exactly the checked commit in its still
open session, the same match the CAS uses to reuse the preparation. The
re-proposal test counts every lookup, not only those inside the CAS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:00:55 -08:00
pingqiuandClaude Opus 5.5 70d29c86b9 fix(storage): every HEAD commit of the chunk layer runs the object check first
A detach's cancellation and an unresolved cut's re-proposal now run the
object check before their CAS, as the cut's commit does. The cancellation
adds no chunk, but its new root's segments and root were looked up inside
the HEAD step's fixed limit. The guard requires the check before every HEAD
commit site and lists no exemption; the fixed-limits row names it and the
cancellation's control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:52:28 -08:00
pingqiuandClaude Opus 5.5 3609d3c5c1 docs(invariants): fixed limits surround bounded work only; guard the unchecked commit
Change rule 7 and table C.L: one row per fixed time limit around work that
grows with the volume, with what runs inside it, what runs outside it under
progress, and its test; three start-path and control rows are STUB until
measured. The unchecked commit is a stated gap kept true by a guard that
classifies every HEAD commit site of the chunk layer and requires the
object check before the cut's commit. Comments at the commit step's lookups
and at the HEAD bound's default mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:36:23 -08:00
pingqiuandClaude Opus 5.5 64c9d07c1d fix(storage): bound only the HEAD step of a remote that bounds it; reuse the checked preparation
The 2 s HEAD bound wrapped the holder's whole commit call, including the
preparation that grows with the chunk count (manifests, root and segments).
A remote that reports BoundsHeadStep now gets the caller's context plus a
step budget and applies it around each attempt's HEAD read and conditional
write; other remotes keep the whole call bounded. The layout remote reuses
the passed check's prepared request for every attempt of its session, so no
manifest is read and no root rebuilt after the check. The foreign-reference
selection looks at the first two owners only. The provider's wrapper
forwards BoundsHeadStep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:05:58 -08:00
pingqiuandClaude Opus 5.5 4fdecba380 fix(layout): plan a commit once; the HEAD update's step does constant work
A 1 TiB commit (262,144 chunks) spent 2.47 s inside the 2 s HEAD update
re-deriving the base root and re-scanning the manifests, and its retry did
it again. PlanCommit now computes everything a commit needs from the
request alone (root, segments, base root, the owners of the changed
entries for the foreign-reference check, and the objects to look up)
before the update; the update step only checks the replay, the base, the
owners and writes. CheckCommit plans on the cut's budget and CASHead
reuses that plan and the passed check on every attempt of the same open
session (matched by manifest equality); the check is no longer dropped
before the commit, so a re-proposal after an unknown outcome looks up
nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:45:19 -08:00
pingqiuandClaude Opus 5.5 de64d1a655 test(master): the restore-refusal catalog test's commit names its census row
Main now has a test (from the refused-restore change) that commits a HEAD
through layout.RunCommit; with the cause argument it passes
layout.CauseCommit. Test only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:31:52 -08:00
pingqiuandClaude Opus 5.5 b05cd558c4 test(layout): the census scan closes aliases, initializers and unchecked forwarders; store refusals are unmasked
Review follow-up. The scan now covers package-level initializers, refuses
any writer referenced as a value (a method value or expression), accepts
a forwarded cause only in the four census forwarders and only while it
is never reassigned or redeclared, and refuses a writer call with
another argument count. Negative controls on synthetic source cover each
escape. The store test runs each refusal on a fresh directory, counts
filer write calls, and follows each with a success control under the
right cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:21:19 -08:00
pingqiuandClaude Opus 5.5 deb06b7ca0 style: gofmt the two test fakes the cause argument lengthened
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:21:19 -08:00
pingqiuandClaude Opus 5.5 4c34e33e88 feat(layout): every HEAD write names its census row (HeadWriteCause)
A HEAD is written by three store calls: the conditional update (only
through runTransition), the exclusive create, and the tombstone. Each now
takes a typed HeadWriteCause, one value per row of the HEAD writer
census, so a writer without a row does not compile. The transitions that
serve one row pass it; RunAbort, RunEndClean and RunCommit, which serve
several, take it from their caller. The layout store refuses a cause
outside the census, a first HEAD not written as create and a tombstone
not written as tombstone. No behaviour changes otherwise.

TestEveryHeadWriteIsACensusRow scans the production source: every HEAD
write names a census constant or forwards its function's cause, and
every row has a writer (both directions); it logs the writers by row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:21:19 -08:00
Ping Qiu dfb77aef28 Merge pull request #705 from seaweedfs/fix/cleaning-convergence
feat: resume holder cleaning and reclaim unused metadata
2026-11-28 19:56:05 -08:00
Ping Qiu 16b66806fb Merge pull request #733 from seaweedfs/feat/volume-guest-status
feat(blockvolume): report connected guests; per-volume template unit
2026-11-28 19:50:56 -08:00
pingqiuandClaude Opus 5.5 400cf3edf7 fix(blockvolume): the template passes --volume-id=%i; guests are an observation, not complete detection
Review follow-up. The template unit takes the volume id from its
instance name, so a settings file cannot name another volume (a fourth
per-instance directive, kept by the drift test). /status/guests and its
schema say what it is: the counted frontends (NVMe/TCP, iSCSI) only; an
absent frontend is not served or not counted; a vanished host stays
counted until TCP closes; 0 is not proof that nothing uses the volume.
The endpoint test's callbacks use atomics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:31 -08:00
pingqiuandClaude Opus 5.5 a321c6bee4 feat(blockvolume): report connected guests; per-volume template unit
What volume start and volume stop need, before the commands.

/status/guests?volume=<v> reports the guests connected now through each
frontend served: NVMe/TCP hosts (live admin controllers) and iSCSI
initiators (Normal sessions past login; Discovery sessions do not count),
read at request time, and their sum.

deploy/systemd/sw-blockvolume@.service runs one volume per instance
from /etc/sw-block/volumes/<volume>.env with its own state directory;
apart from three per-instance directives it is sw-blockvolume.service,
and a test keeps the two the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:31 -08:00
Ping Qiu 86f0b373fd Merge pull request #682 from seaweedfs/feature/create-and-place
feat: create and place RF1 volumes through the running master
2026-11-28 19:24:50 -08:00
Ping Qiu a02bc5d2f5 Merge pull request #710 from seaweedfs/fix/refused-restore-no-record
fix(master): a refused restore leaves no target record; a deleted name is not told to retry
2026-11-28 18:45:43 -08:00
pingqiu 936f1018eb test: describe assignment admission without internal references 2026-11-28 18:30:07 -08:00
pingqiu 80cb6eb74a test: enumerate the snapshot probe session read 2026-11-28 18:26:34 -08:00
pingqiu 8499e59b74 preserve cleaning order and scheduled worker lifetime 2026-11-28 18:26:34 -08:00
pingqiu 13fe1190f6 skip snapshot probes during holder activity 2026-11-28 18:26:34 -08:00
pingqiu be2ad6c65b observe snapshot removal in holder maintenance 2026-11-28 18:26:34 -08:00
pingqiu 35b6ec7471 test: classify shared remover HEAD reads and absent metadata 2026-11-28 18:26:34 -08:00
pingqiu 494a094c62 feat: resume holder cleaning and reclaim unused metadata
Remove unnamed roots, segments and chunks through one conditional mark/delete writer. Resume chunk cursors after bounded passes; re-plan metadata first and retain the session initial root set through operator snapshot deletes. Add a local trigger of the existing snapshot schedule for qualification.
2026-11-28 18:26:34 -08:00
pingqiu 6424b7f9d9 fix: keep first cleaning waiting through capture refusals 2026-11-28 18:26:23 -08:00
pingqiu 5cb39c5b3c retain request progress and prove stalled-session cleaning end to end 2026-11-28 18:26:20 -08:00
pingqiu 62ceffe78a observe request cuts before cleaning and exclude unadmitted stalls 2026-11-28 18:26:20 -08:00
pingqiu ae8e508044 guard unchanged cleaning when startup cuts are disabled 2026-11-28 18:26:20 -08:00
pingqiu a46fd57756 bound stalled cut sessions and order startup cleaning 2026-11-28 18:26:20 -08:00
pingqiu acfafb4aca retry automatic cuts while staging makes progress 2026-11-28 18:26:20 -08:00
pingqiu 0aeed517fd test immediate retry after cut staging progress 2026-11-28 18:26:20 -08:00
Ping Qiu db136ca5e9 Merge pull request #715 from seaweedfs/fix/cluster-status-revision
fix: expose build revisions for cluster diagnostics
2026-11-28 18:20:58 -08:00
Ping Qiu e42aadf793 Merge pull request #697 from seaweedfs/fix/c1-commit-check-outside-head-window
fix: check a commit's objects with the cut's budget, before the HEAD update
2026-11-28 18:05:27 -08:00
Ping Qiu 298b79d7a1 Merge pull request #684 from seaweedfs/fix/blob-http-conn-reuse
fix(chunkstore): the needle client reuses its connections
2026-11-28 17:41:43 -08:00
Ping Qiu a97259315d Merge pull request #722 from seaweedfs/test/golden-v100-master-stores
test: v1.0.1 reads the v1.0.0 files of the master's stores (golden guard)
2026-11-28 16:24:44 -08:00
Ping Qiu c3c070bab4 Merge pull request #719 from seaweedfs/test/golden-v100-encodings
test: v1.0.1 keeps the v1.0.0 on-disk encodings (golden guard)
2026-11-28 16:23:44 -08:00
pingqiu 2cb10e1f7f test: register create-and-place layout identity probe 2026-11-28 16:17:25 -08:00
pingqiu 31e92dc4a9 docs: regenerate status version row from its code comment 2026-11-28 16:17:25 -08:00
pingqiu f02e4a0bfa include source modification in diagnostic revisions 2026-11-28 16:17:05 -08:00
pingqiu f91247f4cb expose comparable build revisions in diagnostic status 2026-11-28 16:17:05 -08:00
pingqiu 0d1d7974d9 test, master: pin assignment producer guard sites and retry ordering 2026-11-28 16:16:54 -08:00
pingqiu a09e94303d test, master: pin dynamic first-assignment refusal in the RF control 2026-11-28 16:16:53 -08:00
pingqiu b4a3f0f100 fix, master: require an assignment producer only for new intent 2026-11-28 16:16:53 -08:00
pingqiu e4f25b1674 test, master: cover recorded intent retries with the product loop disabled 2026-11-28 16:16:53 -08:00
pingqiu 0a996cacc2 test, master: configure assignment producers in lifecycle fixtures 2026-11-28 16:16:53 -08:00
pingqiu 0d90833404 fix, master: refuse dynamic creation without the lifecycle product loop 2026-11-28 16:16:53 -08:00
pingqiu e3d0e30f0a test, master: require an assignment producer at both creation doors 2026-11-28 16:16:53 -08:00
pingqiu 1355430a02 test, cli: guard the shared create deadline and retained placement 2026-11-28 16:16:53 -08:00
pingqiu 504d0d1b55 fix, cli: default create to NVMe TCP and exercise lost-answer retries 2026-11-28 16:16:53 -08:00
pingqiu 8a4ca2a813 feat, cli: create and place RF1 volumes through the running master 2026-11-28 16:16:53 -08:00
pingqiu 640813e8e6 test: pin the online RF1 create-and-place command seam 2026-11-28 16:16:53 -08:00
pingqiuandClaude Opus 5.5 1419a84630 docs(invariants): INV-CREATE-ONE-IDENTITY-001; a served-then-deleted name stays refused
The ledger row for the identity rule this change keeps: one name, one
layout identity; no directory but the record's holds a live HEAD. Its
scope: only a refused restore's record (never left the creation phase)
is removed; a served volume's deleted name is never created again. A
guard test proves that name is refused for a plain create, the same
restore request and a new one, with no record and no filer write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 16:15:54 -08:00