Commit Graph
826 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 f437a52ef7 fix: count each staged chunk as it finishes; ledger row for the stage counters
StagedChunks is counted when staging remembers a chunk for reuse, so a
round interrupted partway counts what it finished instead of nothing;
the copy window, which shares the upload stream, does not count. The
counter's contract (only grows, a re-staged chunk counts again,
in-process) is stated in the status and in a new invariant row with its
tests: an exact count of 6 for a failed attempt, 0 for its reusing retry,
and 5 of 6 for a round whose upload fails at the sixth chunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:24:14 -08:00
pingqiuandClaude Opus 5.5 6d00eb63b4 fix: a cut's payload time counts staging; the layer counts staged chunks
A cut's PayloadNs now counts its staging rounds even when they uploaded
nothing (every staged chunk was zero), so a first cut that spent its time
reading and hashing shows it. The layer status gains StagedChunks: the
chunks staged by every cut attempt, failed ones included, so a cut retried
after its deadline shows the progress its earlier attempts made.
DirtyChunks is documented as the next cut's candidates, not its progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:08:11 -08:00
pingqiuandClaude Opus 5.5 6516a950ff review fold: the create-mode geometry check in M1 (diagram and row); the systemd test needs GAP1_SYSTEMD_AUTHORIZED=1 and root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:51:21 -08:00
pingqiuandClaude Opus 5.5 3bd8e3302d fix(blockvolume): a volume record not read in create mode is refused before any store exists
INV-VOL-GEOMETRY-FLAGS-RECORD-001: in create mode a ReadVolume error was
taken as an absent record, so a wrong --durable-blocks could still create a
wrong-size store when the record could not be read. The error is now
classified (one type check): the filer failed the read (remote unavailable,
deadline) -> exit 75, retried: 'the volume record of V could not be read
(<cause>); no local store was created; retrying'; the record is there but
does not decode -> exit 78, not a retry loop: 'the volume record of V is
unreadable (corrupt: <cause>); no local store was created; restore or
recreate the record'. An absent record (not found) keeps the create path.
A first start with the filer down was already safe: it ends at the startup
filer check (exit 1) before this one.

Tests: unit, both classes (a failing LookupEntry -> 75 for a wrong and a
right flag, the record read; a corrupt VOLUME entry -> 78);
TestCorruptRecordIsRefusedBeforeTheStoreIsCreated (filer up, the VOLUME
entry undecodable: 78 and no store for both flags; restored: 78 for the
wrong flag, the right flag serves); TestFirstStartWithTheFilerDownCreatesNoStore
(guard). The ledger row and the operator guide say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:38:57 -08:00
pingqiuandClaude Opus 5.5 9931e95525 docs(invariants): the header row count includes INV-VOL-GEOMETRY-FLAGS-RECORD-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:18:07 -08:00
pingqiuandClaude Opus 5.5 409f706f31 test(blockvolume): review fold: a real unreadable-record read, the cure's exact attach refusal, the invariant under 300 characters
The unreadable-record control reads a valid volume through a filer whose
lookups fail and asserts the read happened. The cure test's right-flag
start on the planted store must exit 75 with the attach check's
geometry_mismatch and never log a frontend phase over its life. The
ledger statement keeps its meaning in 288 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:02:35 -08:00
pingqiuandClaude Opus 5.5 f1227debce fix(blockvolume): refuse geometry flags that disagree with the volume record before creating a store
INV-VOL-GEOMETRY-FLAGS-RECORD-001. A create-mode start whose
--durable-blocks/--durable-blocksize disagree with the volume record exits 78
(no restart) with a line naming both geometries, before the durable provider
is built, so no local store of the wrong size is created. An existing local
store is never rechecked against the flags (its geometry is checked at
attach, as before); a missing record keeps the create path; an unreadable
record falls through to the attach check.

Tests: TestGeometryFlagsRefusalComparesTheRecord (unit);
TestWrongGeometryFlagIsRefusedBeforeTheStoreIsCreated (real binaries, red on
the previous main: exit 75 after 35 s and a wrong-size store). The cure for a
store an earlier release left stays: TestWrongGeometryCureAsWritten plants
that store from a readable text fixture of a 2129a736 capture (sha256 checked
per file); the operator guide scopes the cure to such a store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:51:02 -08:00
pingqiuandClaude Opus 5.5 1cbbc213ec docs: operator guide: how long a snapshot may wait for a host slot with many volumes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:04:21 -08:00
pingqiuandClaude Opus 5.5 924f933873 docs: operator guide: a snapshot refused for a busy host slot is retried with the same request id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:52:55 -08:00
pingqiuandClaude Opus 5.5 8877cc6d3e docs: scope the wrong-geometry cure to a volume's first start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:14:22 -08:00
pingqiuandClaude Opus 5.5 d565e7e140 docs: stop first, then the guard, then remove; name the message; what the guard does not cover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:11:10 -08:00
pingqiuandClaude Opus 5.5 dea5e6a6dc docs: operator guide: the cure for a start with the wrong --durable-blocks, guard first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:10:37 -08:00
pingqiuandClaude Opus 5.5 4ed3368da8 docs: operator guide command table: the skew-bound refusal and its binary test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:14:39 -08:00
pingqiuandClaude Opus 5.5 bf8d101c82 docs: operator guide command table: the procedures the procedure gate found run (headroom, disk full, store outage) and the ones not run in 1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:10:50 -08:00
pingqiuandClaude Opus 5.5 8e313361a3 docs: a target refused for local room does not block its source, and keeps its data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:31:25 -08:00
pingqiuandClaude Opus 5.5 093435fcbe docs: hold the source-delete sentence until its data check has run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:51:08 -08:00
pingqiuandClaude Opus 5.5 9cdde83092 docs: a target refused for local room also recovers on another durable root of the same host, and does not block its source's deletes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:48:38 -08:00
pingqiuandClaude Opus 5.5 a0910e8dbf docs: store-outage bullet says only what was measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:50:39 -08:00
pingqiuandClaude Opus 5.5 2b491706c2 docs: operator guide: what a store outage does to a volume, as measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:46:52 -08:00
pingqiuandClaude Opus 5.5 6297deedc1 docs: a target refused for local room has one way out, freeing space; a forced move is refused for it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:36:31 -08:00
pingqiuandClaude Opus 5.5 a4d495fa90 docs: headroom refusal precedes the store, not every sidecar; it exits 1 and the unit retries; the way out for a refused target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:14:23 -08:00
pingqiuandClaude Opus 5.5 faedc7fced docs: M1 diagram edge CreateRefused; the table row named to match
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:18:32 -08:00
pingqiuandClaude Opus 5.5 1fe7c24ef4 docs: the create-time headroom refusal in the operator guide; release note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:34:49 -08:00
pingqiuandClaude Opus 5.5 69a52a1b79 docs: operator guide: size the local disk, what a Linux guest sees when it fills, and where --host-limit-dir goes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:34:48 -08:00
pingqiu bca523c964 Merge branch 'pr490' into HEAD 2026-11-23 01:50:52 -08:00
pingqiu 59ad907ca6 Merge branch 'pr487' into HEAD 2026-11-23 01:50:52 -08:00
pingqiuandClaude Opus 5.5 24b9432574 docs: INV-HOST-CUT-BUDGET-FALLBACK-001 statement under 300 characters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:48:18 -08:00
pingqiuandClaude Opus 5.5 98d87777aa fix(durable): headroom guard before any sidecar; the open warning counts data growth apart from the WAL; M1 trace row
Review: a refused chunk create left its fresh marker; a fresh 256 MiB store
(WAL only allocated) with 256 MiB free gave no warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:41:58 -08:00
pingqiuandClaude Opus 5.5 29c4c2ef83 docs: invariants Part B count for INV-LOCAL-HEADROOM-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:36:57 -08:00
pingqiuandClaude Opus 5.5 c1f1602d1d docs: INV-LOCAL-HEADROOM-001 (create refused without local headroom; warning at start)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:35:29 -08:00
pingqiuandClaude Opus 5.5 1a77477892 fix(hostlimit): uploads go unpaced only while every live lease is a fallback lease; wrapper test
A healthy lease admitted beside an urgent fallback lease kept no pacing
(review). The pacing error wrapper now has a test: prefix, cause, no put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:04:10 -08:00
pingqiuandClaude Opus 5.5 30dafdbb1e docs: INV-HOST-CUT-BUDGET-FALLBACK-001: the urgent fallback does not pace uploads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:54:57 -08:00
Ping Qiu 86ac412577 Merge pull request #479 from seaweedfs/fix/workspace-skew-exit-margin
blockmaster: refuse workspace skew below the fence exit margin
2026-11-23 00:29:35 -08:00
pingqiuandClaude Fable 5.2 ca9a094b86 docs: the delete procedure and two crash procedures are tested
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:53:07 -08:00
pingqiu 384d2002e6 docs: describe configured fence-exit budget and scheduling premise 2026-11-22 23:45:08 -08:00
pingqiu 8a00ae8bdd docs: align workspace skew range with fence-exit check 2026-11-22 23:43:10 -08:00
pingqiu c3fb807558 blockmaster: derive minimum workspace skew from fence exit bound 2026-11-22 23:37:27 -08:00
pingqiuandClaude Fable 5.2 bfd7aaed85 docs: a repeated snapshot request while its snapshot is being deleted
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:33:58 -08:00
Ping Qiu 91f656e7aa Merge pull request #471 from seaweedfs/test/snapshot-replay-while-deleting
fix: a create retry refuses a snapshot being deleted (snapshot_deleting)
2026-11-22 23:33:07 -08:00
pingqiu c6b9135bed docs: link master loss evidence to forced move admission 2026-11-22 23:04:42 -08:00
pingqiu 2403eab1ce test: keep master loss PR limited to test files 2026-11-22 23:04:40 -08:00
pingqiuandClaude Opus 5.5 a7cec7cc1d test: the create's own guard against an attempt found deleting has a control; ledger and M6 diagram name the refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:56:30 -08:00
pingqiu 1a0aa9a9ed docs: trace master loss ordering to forced move admission 2026-11-22 22:54:01 -08:00
pingqiuandClaude Opus 5.5 cfa7ce2644 fix: a create retry refuses a snapshot being deleted (snapshot_deleting) instead of answering success
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:47:50 -08:00
pingqiu 5400298ca2 Merge remote-tracking branch 'origin/main' into test/single-volume-master-loss 2026-11-22 22:42:30 -08:00
Ping Qiu 329ded8fae Merge pull request #470 from seaweedfs/train/20261123-29
release: OSS train 29 (heartbeat order per slot #453; permanent recovery cause at the guest gate #464; delete refusal names its cure #448; fork deadline before metadata writes #454)
2026-11-22 21:51:25 -08:00
Ping Qiu b55a765426 Merge pull request #465 from seaweedfs/docs/master-clock-safety-premise
docs: require slewed blockmaster clocks for live leases
2026-11-22 21:17:15 -08:00
pingqiu 530c96508b Merge branch 'pr454' into HEAD 2026-11-22 20:56:07 -08:00
pingqiu 5e42d8eeee chunkstore: check fork deadline before legacy manifest preparation 2026-11-22 20:51:03 -08:00
pingqiuandClaude Opus 5.5 a3b43ed86d docs: recompute the Part B count for train 29
#453 and #448 each add one ACTIVE row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:47:32 -08:00