Commit Graph
4029 Commits
Author SHA1 Message Date
Ping Qiu afb9e86a11 Merge pull request #726 from seaweedfs/feat/head-write-logs
feat, chunkstore: log HEAD writes with census causes and sessions
2026-11-28 23:27:37 -08:00
Ping Qiu dfe4515abb Merge pull request #744 from seaweedfs/ci/test-hosted
ci: run pull-request tests on GitHub-hosted runners
2026-11-28 22:42:08 -08:00
pingqiuandClaude Opus 5.5 aaef4cf5d6 ci: run pull-request tests on GitHub-hosted runners
Pull requests queued for over an hour behind three self-hosted runners while
GitHub-hosted runners, free for this public repository and already used for
fork PRs, start within about a minute and run many jobs in parallel. Pushes to
main keep the self-hosted tp04 runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:38:42 -08:00
Ping Qiu 20891c8e93 Merge pull request #713 from seaweedfs/feat/head-write-cause
feat(layout): every HEAD write names its census row (typed HeadWriteCause)
2026-11-28 22:37:22 -08:00
pingqiu 15c1f4a33b test: keep typed delete stdout separate from HEAD diagnostics 2026-11-28 21:49:21 -08:00
Ping Qiu 9ac1bcf4f9 Merge pull request #738 from seaweedfs/docs/upgrade-mixed-version
docs(upgrade): order rule and three mixed-version facts
2026-11-28 21:39:36 -08:00
Ping Qiu 6d63003461 Merge pull request #735 from seaweedfs/feat/volume-start-stop
feat(sw-block): volume start and volume stop
2026-11-28 21:39:01 -08:00
Ping Qiu ac180bdee8 Merge pull request #742 from seaweedfs/ci/spec-trace-hosted
ci: run the spec trace check on a GitHub-hosted runner
2026-11-28 21:37:39 -08:00
pingqiuandClaude Opus 5.5 3d09c242b4 ci: run the spec trace check on a GitHub-hosted runner
The check only reads the PR description and the changed-file list. On the
self-hosted runners it waited behind full test jobs for over an hour and held
back merges whose tests had already passed. Hosted jobs in this repository
start within about a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:29:53 -08:00
pingqiu 33d91e484e fix, chunkstore: warn when a HEAD write answer is unknown 2026-11-28 20:33:16 -08:00
pingqiu b8c25a84ac feat, chunkstore: log acknowledged HEAD writes with their census cause 2026-11-28 20:33:16 -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
pingqiuandClaude Opus 5.5 f0ca4e1176 docs(upgrade): the creation limit is the release's; the loop's state; 'can run past'
New volumes stay at 256 GiB unless the v1.0.1 release note raises the limit; the restore-target exception applies when the product loop is on (interval above 0); the downgrade hazard says the commit check can run past v1.0.0's limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:12:25 -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 92404c5236 test(lifecycle): register volume start's layout identity sites with their probes
miniVolumeSpec, volumeSpec's args and env, and volumeStart read or write
the layout id; each is listed with the test that probes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:54 -08:00
pingqiuandClaude Opus 5.5 a01f09e6fa fix(sw-block): volume stop keeps its checks for a transitional unit; a cut answer needs its fields
Review follow-up. activating, deactivating and reloading may have a live
holder (reloading is an active unit): the guest read and the cut stay,
refusing when the holder is down, and --force --no-cut stops the unit. A
cut's success answer must carry cutLSN and headGen (LSN 0 is an empty
volume's); without them the outcome is unknown. The lost-answer fake now
records its publication, and the refusal reports that confirmed cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:42 -08:00
pingqiuandClaude Opus 5.5 3aca5e3212 fix(sw-block): volume verbs trust only verified states, frontend readiness and complete cut answers
Review follow-up. A unit is stopped only when systemctl reports inactive
or failed; a state it cannot report certifies nothing (stop refuses,
--replace refuses), and --replace is refused over a transitional unit.
start waits for FrontendPrimaryReady for its volume, not Healthy alone,
and names the not-ready reason. Only a complete success answer for the
volume is a cut: a lost answer, a truncated or foreign answer and
outcome_unknown are unknown outcomes (the cut may have published) and
refuse. The refusal reports the last confirmed cut, never that the
recovery point did not move. The flags the unit passes beyond mini's are
listed and classified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:41 -08:00
pingqiuandClaude Opus 5.5 dc2ccfce21 fix(sw-block): volume stop stops an activating unit; the printed cut time precedes the cut
Review follow-up. Only an inactive or failed unit is nothing to stop; a
unit systemd is restarting (activating, deactivating, reloading) is
stopped without a guest read or a cut, and the output says no cut was
taken. The time in the closing sentence is read before the cut's
request, so the cut covers every write before it. A timed-out cut's
refusal says its progress is kept; the help and the page say how to add
a new volume until volume start can create one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:41 -08:00
pingqiuandClaude Opus 5.5 d67ffe029c feat(sw-block): volume start and volume stop
volume start runs an existing volume as sw-blockvolume@<volume>: it
writes the unit's settings file, resolves the layout id, enables and
starts the unit, waits until it serves, and prints the connect command.
volume stop refuses while a guest is connected (unless --force), takes a
cut, refuses when the cut failed or its outcome is unknown (unless
--no-cut, giving the recovery point's age), stops the unit, and ends
with what it promises: the recovery point in the object store is the
cut; writes after it are on this host only.

mini and the unit share one blockvolume settings builder; a test renders
the settings through the shipped unit and compares them with mini's
flags. A second supervisor on one durable root is refused (guard test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:25:41 -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
pingqiuandClaude Opus 5.5 52b0de4b9d docs(upgrade): precise mixed-version facts
A v1.0.0 holder of a volume above 256 GiB is unsupported (its commit check can run past its limit), not unable to serve; the restore-target refusal holds while the product loop is off; cluster.check runs from a v1.0.1 sw-block and reports a v1.0.0 holder's version as unavailable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:17:17 -08:00
pingqiuandClaude Opus 5.5 6f23643428 docs(upgrade): order rule and three mixed-version facts
blockmaster before any host (the reverse is not supported); no volume above 256 GiB until every host runs v1.0.1; a restore target in the cluster spec first; cluster.check reports an older build for a v1.0.0 holder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:14:21 -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