Commit Graph
4019 Commits
Author SHA1 Message Date
pingqiu ba933ec0c8 docs, logging: describe the enabled cut diagnostics and unknown outcomes 2026-11-28 21:49:21 -08:00
pingqiu d866004634 feat, storage: report existing cut phase timings at debug 2026-11-28 21:49:21 -08:00
pingqiu 85ce02cb3b test: compare procedure log times as precise UTC instants 2026-11-28 21:49:21 -08:00
pingqiu a9f69b663f docs, logging: identify the timestamp change as v1.0.1 2026-11-28 21:49:21 -08:00
pingqiu d00a1fd438 docs, logging: clarify debug plumbing and timestamp compatibility 2026-11-28 21:49:21 -08:00
pingqiu 52207a9bc5 feat, logging: add verbosity flags and UTC microsecond timestamps 2026-11-28 21:49:21 -08:00
pingqiu 15c1f4a33b test: keep typed delete stdout separate from HEAD diagnostics 2026-11-28 21:49:21 -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
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