Commit Graph
4488 Commits
Author SHA1 Message Date
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 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
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
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 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 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
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
Ping Qiu 155d4e9ca7 Merge pull request #845 from seaweedfs/feat/v4b-record-shadow
storage: drive the chunk record from the engine's events, in shadow (V4-B step 1)
2026-11-30 14:29:47 -08:00
Ping Qiu 1e2b926024 Merge pull request #856 from seaweedfs/docs/v101-verify-time-main
docs: v1.0.1 note says how verify's time grows and what to set
2026-11-30 14:16:43 -08:00
Ping Qiu 90112cf50f Merge pull request #850 from seaweedfs/fix/map-validation-close-errors
Preserve chunk-map validation cleanup errors
2026-11-30 14:03:18 -08:00
pingqiuandClaude Opus 5.5 3c2a0625ae test(blockvolume): the rejoin waits for one epoch the primary and both peers share
Sampling r1's epoch and then waiting for that exact epoch failed when a
further round moved it in between. waitRejoinConverged polls until r1 is a
healthy primary at some epoch e >= 2 and r2 and r3 are healthy peers at the
same e, read in one pass, and returns e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:01:51 -08:00
pingqiuandClaude Opus 5.5 cde7dfac64 storage: chunk record shadow: bind the scratch exemption to its version; no strict-suite bypass
- the scratch-cut exemption holds only while the chunk keeps the version
  the scratch cut captured; a stale capture grants nothing
- TestMain has no switch that turns the strict findings off
- the raced-fill test bounds every wait and always releases and joins
  its reader

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:01:24 -08:00
pingqiuandClaude Opus 5.5 b2fb15b9f6 docs: v1.0.1 note on main drops the release gates' placeholder line, as on release-1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:53:04 -08:00
pingqiu 0fbf4900c2 docs: v1.0.1 note says how verify's time grows and what to set
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 63ca9b2883)
2026-11-30 13:51:30 -08:00
Ping Qiu 9f7213cc06 Merge pull request #847 from seaweedfs/test/host-port-claims
test(blockvolume): process-level ports are claimed host-wide; a child's failure shows its log
2026-11-30 13:50:32 -08:00
pingqiuandClaude Opus 5.5 53f09b7c50 test(blockvolume): the survivor-rejoin test asserts the rejoin, not epoch 2
After its 6 s pause the resumed primary can answer the promotion gate's
probe not ready on a loaded host; the gate then runs one more fencing round
and continues r1 at the next epoch. The test waited for healthy peers at
epoch 2 only and failed (run 46515001535: r2 and r3 healthy at 3). It now
waits for both replicas healthy at r1's current epoch (at least 2), checks
that r1 is still the primary and that no replica was promoted, and reads
blocks A and B back; a further round is logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:50:22 -08:00
pingqiuandClaude Opus 5.5 691a95750e storage: describe the SPACE fixture's lazy attached shape
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:45:51 -08:00
pingqiuandClaude Opus 5.5 ab3a2feb30 storage: the upgrade uses the record's state codes from the runtime file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:44:14 -08:00
pingqiuandClaude Opus 5.5 d6d4e48229 test(storage): the upgrade's exact bitmap, crash points and complete retry
The bitmap is pinned block by block (the file's local block, a single and a
batch log suffix, their non-local neighbours). The crash before the fence is
the injected one at the first slot write, with the pages complete, no
header and the presence file there at that point; a crash after the fence
and before the header completes on reopen; a retry over a complete record
writes no page, no header and no descriptor slot (file identity checked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:41:36 -08:00
pingqiuandClaude Opus 5.5 930f74ea95 storage: the presence file is evidence only before the marker
A store marked at this epoch is never seeded from the presence file: a
complete record only has the file removed, an incomplete one gets its pages
again from the store's bitmap through the boundary's same-epoch retry, with
a seed that refuses. A store marked at another epoch is refused, typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:41:35 -08:00
pingqiu dfe7eb3c33 Keep close-error regression entirely in tests 2026-11-30 13:41:30 -08:00
pingqiu ac52a15fb2 Keep cleanup fault injection within file ownership 2026-11-30 13:41:29 -08:00
pingqiu e0702a917c Record map cleanup error preservation invariant 2026-11-30 13:41:29 -08:00
pingqiu ee03f83c53 Preserve map validation cleanup failures 2026-11-30 13:41:28 -08:00
pingqiuandClaude Opus 5.5 013b6222fe test(storage): after the marker the presence file is not evidence
Two reds: a completed upgrade with a damaged header re-reads the presence
file; an upgrade at another epoch than the store's marker is taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:41:16 -08:00
pingqiuandClaude Opus 5.5 1210ce60c7 storage: upgrade a v1.0.x volume's chunk state at open
After Recover, with extent draining held and before the chunk layer
attaches: seed the store's bitmap from the presence file (present chunks
whole; absent chunks with the file's local blocks and those of log entries
not yet applied), write the record's pages from the prepared coverage with
each chunk classified by the kernel's Rebuilt event, let the store publish
the bitmap and fence both slots, write the header, remove the presence file.
Each step repeats; a complete record only has the presence file removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:41:16 -08:00
Ping Qiu 6d61690df0 Merge pull request #852 from seaweedfs/feature/v11-coverage-complete
Add durable chunk coverage with retained-WAL and epoch guards
2026-11-30 13:40:17 -08:00
pingqiuandClaude Opus 5.5 80e0dc5b5f test(blockvolume): port-claim tests use a holder and a contender subprocess
The parent no longer claims, so its claim map stays empty and -count=2
passes; a hold helper keeps the claim until its stdin closes, a try helper
reports taken or refused, and both run under a local deadline and are
reaped. Held: refused to another process; after the holder exits: taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:12:39 -08:00
pingqiuandClaude Opus 5.5 d799063744 test(blockvolume): port claims open their lock files read-only; only "held" refuses
A lock file created by one runner user (0644 under umask 022, never removed)
was opened read-write by the next user and refused with EACCES, locking its
port out for good. flock needs no write access: open read-only, create
0444. Only EWOULDBLOCK means another process holds the port; any other
claim error is reported once, with its path, and the port is left to the
listen probe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:11:21 -08:00
pingqiu ffa6608972 Serve lab heap profiles on the existing status listener 2026-11-30 13:08:56 -08:00
Ping Qiu 0cc1b38620 Merge pull request #848 from seaweedfs/revert/833-coverage
revert: chunk coverage (#833) until its two integrity fixes land
2026-11-30 13:07:58 -08:00
pingqiu 81db85916b Allowlist the lab heap profile diagnostic files 2026-11-30 12:50:23 -08:00
pingqiu a39e295d92 Refuse stale coverage baselines and epoch relabeling 2026-11-30 12:47:26 -08:00