Commit Graph
4553 Commits
Author SHA1 Message Date
pingqiu da17629e75 docs: split collision invariants into single properties 2026-11-30 23:55:47 -08:00
pingqiu 3616d42946 docs: record checked collision redraw automaton 2026-11-30 23:29:24 -08:00
pingqiu 5c5c57055d fix: settle pending identity before create metadata enrichment 2026-11-30 23:15:44 -08:00
pingqiu ffe16608dd fix: redraw pending volume identity after directory collision 2026-11-30 23:06:30 -08:00
Ping Qiu 13d0627043 Merge pull request #864 from seaweedfs/fix/holder-cgroup-memory
blockvolume: derive the default Go soft memory limit from its cgroup
2026-11-30 22:59:12 -08:00
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
pingqiu e5aeb426d7 blockvolume: classify parser sites and refuse unresolved mount roots 2026-11-30 22:37:34 -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
pingqiu 9f899120e3 blockvolume: resolve cgroup mounts and skip discovery for version 2026-11-30 21:52:29 -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
pingqiu 987ac097eb docs: clarify cgroup v2 sizing and explicit memory configuration 2026-11-30 21:44:36 -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 60e482f978 blockvolume: derive the default Go memory limit from its cgroup 2026-11-30 21:40:44 -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