Commit Graph
4544 Commits
Author SHA1 Message Date
Ping Qiu 406a2375fd Merge pull request #653 from seaweedfs/test/store-down-causal-cut
test: the store goes down inside the cut by construction
2026-11-30 22:43:48 -08:00
Ping Qiu 786e5b7596 Merge pull request #853 from seaweedfs/feature/v11-map-checkpoint-by-change
storage: checkpoint the chunk map by changed pages
2026-11-30 22:38:55 -08:00
Ping Qiu f25774ec4d Merge pull request #844 from seaweedfs/test/wallclock-budgets
test(durable): wall-clock tests wait for their events with deadline-aware budgets
2026-11-30 22:34:05 -08:00
Ping Qiu 5a04fd27c3 Merge pull request #863 from seaweedfs/feat/remote-full
storage: a full chunk store is remote_full, and status names the last failed cut
2026-11-30 22:33:58 -08:00
pingqiuandClaude Opus 5.5 5a9f2a66c2 test: stillHeld reads the held call's own context
A caller can give up before the front's handler is scheduled to notice,
leaving the left channel open; the check reads the held request's context
first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:04:08 -08:00
pingqiuandClaude Opus 5.5 15381ee7eb test: the store-down test proves the held upload was still waiting at the kill
The filer front records when the held call leaves and why (the test's
release, or its caller giving up); the test checks the hold is still
waiting right after the store goes down, else the run is inconclusive.
E1_TEST_DELAY_KILL delays the kill past the upload's timeout as the
negative control. The post-restart HEAD reads carry the wait's absolute
deadline, and the side-file census fails on any error but a file removed
while it is walked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:59:00 -08:00
Ping Qiu 6cea6fd674 Merge pull request #843 from seaweedfs/v11/remove-experimental-engines
durable: remove the smartwal and parallel-walstore engines (refused typed)
2026-11-30 21:54:58 -08:00
Ping Qiu a8ef2e4bfe Merge pull request #862 from seaweedfs/fix/coverage-initialization-append-guard
storage: recheck coverage initialization before publication
2026-11-30 21:49:41 -08:00
pingqiuandClaude Opus 5.5 d8fb4f681c test: every event wait is clamped to the time the test has left
eventBudget is asked again for each wait and is at most the time left
before the test's deadline less a reserve, with no fixed minimum, so no
wait outlives the deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:47:32 -08:00
pingqiuandClaude Opus 5.5 0ce226d22f docs: operator guide names remote_full and LastCutFailure for a full store
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:46:01 -08:00
pingqiu 4d86b68417 Merge remote-tracking branch 'origin/main' into feat/remote-full 2026-11-30 21:45:36 -08:00
pingqiuandClaude Opus 5.5 c6ac6cc103 storage: a final upload answer keeps an earlier full-store answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:45:18 -08:00
Ping Qiu 293467b6ce Merge pull request #861 from seaweedfs/docs/seaweedfs-capacity
docs: SeaweedFS capacity for block volumes, and what a full store reports
2026-11-30 21:44:34 -08:00
pingqiuandClaude Opus 5.5 4426d07ba4 test: the store-down test finds copy-on-write side files under the volume's directory
A store now lives in its volume's own directory (<name>-<id8>) and its side
file is created next to it; the test globbed only the host root, so it
measured 0 and its no-leftover checks looked nowhere. It walks the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:44:33 -08:00
pingqiuandClaude Opus 5.5 96a3d30003 storage: keep a full store's answer through retries and a batch; record the guarantees
SeaweedFS names a full store only to the assign that tries to grow a
volume, so one object's retries and a cut's upload batch keep that answer
over plainer failures. A real-weed integration test fills a tiny store and
checks every round of concurrent uploads answers remote_full. The ledger
gains the remote_full and LastCutFailure rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:41:36 -08:00
pingqiu 7fed355a20 storage: align checkpoint snapshots with record-page readers 2026-11-30 21:39:02 -08:00
pingqiu 7e9467a9ed ci: run tests at ready 2026-11-30 21:37:36 -08:00
pingqiu 325e69038a Record native checkpoint and empty-tail stop qualification 2026-11-30 21:37:36 -08:00
pingqiu 24610b1655 Synchronize map allocator geometry across the coverage upgrade 2026-11-30 21:37:36 -08:00
pingqiu 567d8beff6 Hold extent draining during the sparse stop test upgrade 2026-11-30 21:37:36 -08:00
pingqiu 3efd222215 Read map checkpoint observations without scanning live extents 2026-11-30 21:37:36 -08:00
pingqiu e5be3b76a3 Checkpoint changed map paths with shared references and extent pins 2026-11-30 21:37:35 -08:00
pingqiu 87c17dbb8b Freeze owned map entry snapshots without copying the live vector 2026-11-30 21:37:16 -08:00
pingqiu 984e94fc40 perf: share immutable map entry pages between candidates 2026-11-30 21:37:16 -08:00
pingqiu 9b07f4b7b5 docs: retain the existing linear empty-map creation contract 2026-11-30 21:37:16 -08:00
pingqiu 7e9700782e test: align map cost boundary with first-open upgrade 2026-11-30 21:37:16 -08:00
pingqiu 51ca6d2432 test: expose legacy store creation admission gap 2026-11-30 21:37:16 -08:00
pingqiu a8d922942b test: expose whole-map checkpoint copy at one TiB 2026-11-30 21:37:16 -08:00
Ping Qiu 468b7a3db2 Merge pull request #819 from seaweedfs/docs/main-is-v11
docs: README says main is v1.1 in development; v1.0.x ships from release-1.0
2026-11-30 21:37:06 -08:00
pingqiuandClaude Opus 5.5 c1fb211129 test: the store-down test waits for a readable HEAD after the restart; verify names the master
The filer front accepts at once while the real filer behind it may still
be starting, so the restart is complete when HEAD reads again. The chunk
verify call names --master, which a bare chunk path now needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:30:51 -08:00
pingqiuandClaude Opus 5.5 36bc8f5683 storage: a full chunk store is remote_full, and status names the last failed cut
SeaweedFS's assign answer for a store with no writable volume and no free
volume slot is classified as ErrChunkRemoteFull on both assign paths; the
routes answer it as remote_full (503, retryable after capacity is added),
apart from remote_unavailable. Every failed cut, requested or scheduled,
sets the layer's LastCutFailure (code, cause, time, repeats), cleared by a
success; the holder logs one WARN per change of code, not one per retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:29:02 -08:00
pingqiuandClaude Opus 5.5 30c6ebda2c launcher: the removed-engine refusal is the provider's typed error
RenderBlockVolumeDeployments refuses smartwal and parallel-walstore through
durable.RemovedEngineName, wrapped with %w, so callers get the same
*durable.RemovedEngineError (engine, advice) as from the provider and
blockvolume, and no manifest. blockmaster already depended on the durable
package through its other imports; nothing is added to its build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:27:05 -08:00
pingqiu 4b02f5a4d3 storage: recheck coverage initialization position before publication 2026-11-30 21:26:57 -08:00
pingqiuandClaude Opus 5.5 3a3b6080a8 launcher: red test, the removed-engine refusal is typed
The ledger row promises a typed refusal from the Kubernetes launcher as
from the provider and blockvolume. The control now requires errors.As on
*durable.RemovedEngineError with the engine and the advice, and no
manifest rendered; it fails here (the launcher returns plain text).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:25:32 -08:00
pingqiuandClaude Opus 5.5 f8da58da3e docs: restore block-design 1.4-1.7, cut with the smartwal section
Replacing section 1.3 also deleted the sections after it (1.4 Durability
and Sync, 1.5 Authority, 1.6 Replication and failover) and the 1.7
heading; they describe walstore and the shipped protocols, not the removed
engines. Restored verbatim from main; only 1.3 changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:25:32 -08:00
pingqiuandClaude Opus 5.5 85d0ca7504 test: the store-down guard checks HEAD's committed image, not its generation
A cut's session begin writes HEAD (a new generation) before its first
upload, so a generation change does not mean the cut committed. On M01
(weed 4.53) the guard fired on the session begin in all four subtests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:17:16 -08:00
pingqiuandClaude Opus 5.5 3303097f58 docs: SeaweedFS capacity for block volumes, and what a full store reports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:14:10 -08:00
pingqiuandClaude Opus 5.5 62e092de37 Store-down procedure: the store goes down inside the cut by construction
The test polled for the cut's first filer entry and then checked HEAD had
not moved; on a fast host the cut committed between the two (HEAD gen 4 ->
5, "not mid-cut"). It now runs on a filer front that holds the reply to the
cut's first applied chunk-object create: the store is stopped while that
reply is held, then the reply is released, so the cut cannot commit before
the store is down. E1_TEST_SKIP_BOUNDARY=1 holds nothing and the test then
fails as inconclusive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:02:13 -08:00
Ping Qiu c77280cd25 Merge pull request #858 from seaweedfs/feat/v4b-record-pages
storage: chunk record pages persisted and opened on the draft v1.1 format (V4-B step 2)
2026-11-30 20:48:30 -08:00
pingqiuandClaude Opus 5.5 a3958bd4c6 durable: leave storage_adapter.go unchanged
Its only change was a comment naming the removed engine; the file is mapped
to model actions, and a comment edit is not one of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:55 -08:00
pingqiuandClaude Opus 5.5 68045d9698 durable: remove the smartwal and parallel-walstore engines
- The provider refuses the removed names and, under every selector and
  before any selector comparison, a volume carrying their magic (SWAW;
  SWPW in either header slot), reading the file read-only and never
  modifying it. blockvolume --durable-impl and the launcher refuse the
  names with the same advice; the chart schema allows walstore only.
- core/storage/smartwal, core/storage/parallelwal and
  cmd/sw-block-testutil (whose one command corrupted smartwal records)
  are deleted, with the helm smartwal-corruption scenario and the
  parallel-walstore gate script.
- The replication harness runs on walstore; tests that ran on a removed
  engine only because a stub needed some store move to walstore, and the
  state_convergence label test moves to the in-memory BlockStore.
- sw-block cluster.check drops the removed engines' cases.
- Ledger: INV-OPEN-REMOVED-ENGINE-REFUSED-001 and
  INV-OPEN-REMOVED-ENGINE-NAME-REFUSED-001, an OpenRefused edge in M1, and
  the rows citing the removed tests updated. Docs: block-design 1.3 now
  describes the removal, the smartwal deep-dive and figure are gone, the
  scripts default to walstore, and the v1.1 notes carry the removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:54 -08:00
pingqiuandClaude Opus 5.5 565a91b6dc durable: red tests, the removed experimental engines are refused typed
v1.1 removes the experimental engines smartwal and parallel-walstore. These
controls fail on main, where both still open:
- a volume carrying a removed engine's magic (SWAW; SWPW at offset 0, or
  only at 4096 when the first parallel-walstore header is torn) is refused
  with the typed RemovedEngineError under the auto and the walstore
  selector, and the file stays byte-identical;
- the removed names are refused typed by the provider, by blockvolume
  --durable-impl, and by the Kubernetes launcher.
The seam adds the error type and its advice ("created by a removed
experimental engine; copy the data to a walstore volume with v1.0.x
first"); RemovedEngineName refuses nothing yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:21 -08:00
pingqiuandClaude Opus 5.5 0d43da4d0d storage: run the deadlock-sensitive v1.1 tests in a bounded child process
A stuck worker or a Close that never returns is a prompt test failure at
the child's bound, with a control that leaves a worker stuck; the Close
worker is joined on every path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:27:51 -08:00
pingqiuandClaude Opus 5.5 60f20f1518 docs: ledger rows for the v1.1 chunk record (WAL-backed pages, fill holds, evict receipt)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:24:55 -08:00
pingqiuandClaude Opus 5.5 5e6eb7c79e storage: v1.1 chunk record: the header's G is bounded by the WAL's last sync; no extra sync at a clean stop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:07:43 -08:00
pingqiu e9ad1ce991 Merge remote-tracking branch 'origin/main' into feat/v4b-record-pages 2026-11-30 19:53:34 -08:00
pingqiuandClaude Opus 5.5 b6cbaf73ab storage: v1.1 chunk record: pages backed by the WAL; fill holds until the durable mark; evict needs its page on every attempt
- a page is stamped with the position its content includes, and the WAL
  is synced through it before the page is written (the header's G too)
- the write's version bump and its applied position move under the
  record's lock, together
- every fill holds its chunk (A or P on the page) until one mark round
  makes the blocks durable in the store's bits; a later write keeps it
- an evict writes the page holding the chunk before the bits clear, also
  on a retry that finds the chunk absent in memory
- the concurrency tests bound every wait and join their workers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:53:32 -08:00
Ping Qiu e3ea7619bc Merge pull request #859 from seaweedfs/fix/coverage-speculative-suffix
fix: sync speculative WAL before coverage publication
2026-11-30 19:47:29 -08:00
Ping Qiu a01e4d00b8 Merge pull request #860 from seaweedfs/docs/stale-test-and-key-names
docs: name current HEAD keys and tests; drop a removed perf command
2026-11-30 19:43:14 -08:00
pingqiuandClaude Opus 5.5 5b3e4ab83e storage: the attach reports the upgrade's presence save and pages as progress
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:38:20 -08:00