Commit Graph
4008 Commits
Author SHA1 Message Date
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
pingqiuandClaude Opus 5.5 ff42e54ff0 fix(chunkstore): drain a non-200 fetch, close the owned pool, and test forced overlap
Review follow-up. A fetch answered with anything but 200 (a 404 is
ordinary while a restore target hydrates) drains its body like a delete,
so its connection is reused. Close also closes the blob client's idle
connections, now that the client owns its transport. The idle pool size
is stated as a retention budget, not a limit on requests in flight.

Tests: 404 fetches reuse one connection; Close releases the idle
connection while the server stays up; the upload test forces waves of
eight overlapping requests and carries a default-pool control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:35:32 -08:00
pingqiuandClaude Opus 5.5 a9a24880e7 test: census package-level ObjectsChecked writes; separate root and segment checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 263a1ffa9b test: syntax-aware ObjectsChecked census; session, snapshot and retry guards
The writer census parses every production file and attributes each write
of ObjectsChecked to its receiver and method (only CASHead), with controls
for another method, a keyed literal and a multiple assignment. New
guards: a check passed in one session is not reused after an abort and a
new session at the same root; CommitPendingSnapshot looks up the root and
segments; the metadata-conflict retry looks up again without a passed
check and may reuse a passed check of the same pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 3051e8f42c fix: forward the commit check through the provider's wrapped remote
blockvolume's chunk layer holds the LayoutRemote inside closeBoundRemote
and layoutBoundRemote, so its assertion for the commit check failed and
the lookups stayed inside the 2 s HEAD update. closeBoundRemote now
forwards CheckCommit with the same binding as CASHead; a remote without it
passes, and its CAS checks inside. Tests go through the provider's attach,
check every optional interface the chunk layer asserts against the
wrapped remote, and cover a pre-check that finds a chunk missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 c9f4ad4bf5 fix: check a commit's objects with the cut's budget, before the HEAD update
The commit's object check (every new chunk, segment and root written by
the session, unmarked) ran inside the one HEAD update, which the chunk
layer bounds at 2 s; the work grows with the changed chunks, so it capped
the volume size. The chunk layer now asks the remote to run that check
with the cut's context, just before the CAS; the CAS then skips the
lookups only for exactly the session and root that passed. Any other CAS
(another root, another session, the snapshot commit) runs them inside as
before. The session stays open between the two, so no cleaning can begin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:20 -08:00
Ping Qiu 0d6cfdf8c2 Merge pull request #729 from seaweedfs/fix/fencing-survivor-rejoin
test: retain production freshness through fencing-heal rejoin
2026-11-28 15:25:58 -08:00
Ping Qiu b31d7c05d3 Merge pull request #704 from seaweedfs/fix/cut-compare-marks
fix(storage): a failed cut's equal compares stay; pace only sent bytes
2026-11-28 15:22:06 -08:00