Commit Graph
10 Commits
Author SHA1 Message Date
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
Ping Qiu f4e724a389 Merge pull request #498 from seaweedfs/test/headroom-restore-fork
test: a restore and a fork target without local headroom are refused, then served once space is freed
2026-11-23 08:02:21 -08:00
pingqiuandClaude Opus 5.5 f9d30f8f5e test: headroom runner script in testdata, exact replica-floor check, pinned delete refusal, distinct request ids, the per-volume limit asserted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:47:24 -08:00
pingqiuandClaude Opus 5.5 652f25b370 test: disk full lead review: a disk that never fills fails case 1; the seal is checked by its generation and verify; teardown kills holders, fails if anything is left; kernel cleanup at connect; per-read deadlines; no t.Fatal off the test goroutine; mount and still-full guards; %w so timeouts are seen; verdict test untagged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:45:37 -08:00
pingqiuandClaude Opus 5.5 9465248b78 test: disk-full harness: 512 MiB root, room for the volume's own data once the filler is gone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:33:37 -08:00
pingqiuandClaude Opus 5.5 29ba251700 test: local disk full with real binaries (WAL mid-I/O, a new durable root, the host-limit dir)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:33:37 -08:00
pingqiuandClaude Opus 5.5 ee5ff92157 test: power loss on a chunk volume (three power cuts: after a committed cut, before a flush, mid-upload); post-mark loss asserted; harness in testdata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:13:23 -08:00
pingqiuandClaude Opus 5.5 4098abca82 test: the procedure gate's captured outputs as fixtures
The move to s2, HEAD reclaimed by s2, the forced move, its dry-run
previews (refused with an admissible time, then admitted) and lost-range,
captured from a passing gate run, are read by the default-build check
test; each check also refuses a neighbouring output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:46:41 -08:00
pingqiuandClaude Opus 5.5 8815c82098 test: the old process exits within the 30 s lease; a clean move without the ACK is refused
The planned hand-over waits 30 s for the old blockvolume's own exit, the
lease bound the lifecycle chapter states.

TestStandaloneCleanMoveWithoutTheACKIsRefused makes the chapter's
negative check deterministic: the volume is sealed, its blockvolume is
killed (a signal sends no ACK), the lease is revoked with the sealed
generation, and the clean move exits 1 with the documented refusal while
workspace show keeps no ACK. Its output is captured into the fixtures and
read by the shared checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:07:24 -08:00
pingqiuandClaude Opus 5.5 027e4da2f0 test: the documented standalone planned hand-over to the same host, end to end
Runs the lifecycle chapter's commands in order against real blockmaster,
blockvolume, sw-block and SeaweedFS on loopback: cluster spec and
lifecycle store, adopt, write and flush a block over NVMe/TCP, plain
detach, revoke with the sealed generation, the old process acknowledges
and exits 0 by itself, show the ACK, clean move to the same host (and its
replay), reopen at the new epoch, and the block reads back unchanged.

The checks that read each step's output are shared with a default-build
test that runs them on output captured from the real binaries
(testdata/planned-handoff), each also refusing another step's output.
The NVMe/TCP host runs in the test process: no root, no nvme_tcp.

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