Commit Graph
4515 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 c974574f8a test: the rejoin failure reports both replicas' log tails
The primary's peer answer alone cannot tell a replica that never caught up
from one that never answered; the failure now carries r2's and r3's logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:14:22 -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
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
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 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 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
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
pingqiu 646b6c5a2b fix: classify unsynced coverage initialization as stale 2026-11-30 19:25:50 -08:00
pingqiu 01cd2806c5 test: cover crashes before the WAL-before-page sync 2026-11-30 19:23:44 -08:00
pingqiuandClaude Opus 5.5 81b88710ac docs: the HEAD CAS step names the current conditional keys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:21:49 -08:00
pingqiu a872fd6513 test: cover WAL ordering at every bitmap publication entrypoint 2026-11-30 19:20:56 -08:00
pingqiuandClaude Opus 5.5 676b6414a6 storage: v1.1 chunk record: use the open-time upgrade; pages never past the durable WAL; review fixes
- attach calls upgradeChunkRecord (presence saved first for a fresh attach)
  instead of a second upgrade: log-only writes are seeded, a marked store
  is rebuilt from its bits, never from engine state
- a page's position is clamped to the last completed WAL sync, and a
  clean stop syncs the WAL before its final pages
- the attach refuses if the store closed while the upgrade had released
  its barrier
- an evict clears the store's bits only after its absent page is durable;
  fill-mark batches and evicts are serialized (markMu)
- a marked store never parses a leftover .chunkpresence
- a final page failure is the result of the layer's and the store's Close

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:20:55 -08:00
pingqiuandClaude Opus 5.5 0739925e68 docs: name current HEAD keys and tests; drop a removed perf command
The HEAD entry's conditional keys are swb.layout.gen and swb.layout.volume,
written by LayoutStore.UpdateHead; the integration tests named in the
workspace design were replaced by the layout ones. The manifest perf test
no longer exists, so its command is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:18:02 -08:00
pingqiu 650b034b91 fix: sync captured WAL prefix before coverage map pages 2026-11-30 19:14:50 -08:00
pingqiu 0783eee74b test: pin coverage authority after a discarded first append 2026-11-30 19:07:09 -08:00
pingqiu 44967d1b30 Merge remote-tracking branch 'origin/main' into feat/v4b-record-pages 2026-11-30 19:05:40 -08:00
pingqiu 94f1e5d083 test: reproduce dropped speculative suffix with coverage format 2026-11-30 19:04:51 -08:00
Ping Qiu a5f213b62c Merge pull request #857 from seaweedfs/feature/v11-chunk-local-mutations
storage: batch durable chunk-local bitmap mutations
2026-11-30 18:56:16 -08:00
pingqiuandClaude Opus 5.5 32e8135a47 ci: allow the v1.1 format guard files to name the lab tag; vet core/storage with it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:59:32 -08:00
pingqiuandClaude Opus 5.5 c11d913c6f storage: describe the evict's clear order by what it is
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:56:22 -08:00
pingqiuandClaude Opus 5.5 58ae8f4575 storage: v1.1 chunk record: fills marked in one batch before their pages claim them; evict clears the store's bits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:47:45 -08:00
pingqiuandClaude Opus 5.5 29c6a0c3ee storage: v1.1 chunk record: recover a crash at each upgrade step; rebuild a damaged page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:44:47 -08:00
pingqiuandClaude Opus 5.5 5056297fbf storage: v1.1 chunk record: attach progress for the pages; stop-time red at 1 TiB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:44:47 -08:00
pingqiuandClaude Opus 5.5 5926bedda4 storage: v1.1 chunk record: sync before the upgrade; v1.0-only presence tests; open-time exemptions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:44:47 -08:00
pingqiuandClaude Opus 5.5 9585e840b7 storage: v1.1 chunk record: upgrade at attach, load at open, pages written
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:44:47 -08:00
pingqiuandClaude Opus 5.5 fc222d2386 storage: v1.1 format build guard; the mutation hook carries the write's LSN
The draft v1.1 store format runs only in lab builds and in this package's
tests (chunkV11Format). The mutation hook passes the write's store
position, so the chunk record knows the position through which it has
applied every write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:44:47 -08:00
pingqiu d8bfc6f958 docs: distinguish coverage validation and latched publication errors 2026-11-30 15:29:21 -08:00
pingqiu 5086b16877 test: classify chunk-local bitmap controls in fresh guard census 2026-11-30 15:28:50 -08:00
pingqiu 135865a69a docs: clarify chunk-local failure and eviction cost boundaries 2026-11-30 15:02:40 -08:00
pingqiu ec2eb93aeb storage: batch filled chunk coverage into one publication 2026-11-30 14:54:12 -08:00
pingqiu 47ca5d5623 docs: normalize local coverage contract ending 2026-11-30 14:42:54 -08:00
pingqiu 8ab67642bd storage: publish durable local coverage mutations 2026-11-30 14:41:47 -08:00
Ping Qiu e6a93eca55 Merge pull request #834 from seaweedfs/feat/v11-record-upgrade
storage: upgrade a v1.0.x volume's chunk state at open
2026-11-30 14:37:15 -08:00
Ping Qiu e0e6acba8a Merge pull request #855 from seaweedfs/test/fence-rejoin-epoch
test(blockvolume): the survivor-rejoin test asserts the rejoin, not epoch 2
2026-11-30 14:32:59 -08:00
Ping Qiu 8beecad1dc Merge pull request #849 from seaweedfs/feat/lab-heap-profile
Serve lab heap profiles on the existing status listener
2026-11-30 14:29:52 -08:00