Commit Graph
1480 Commits
Author SHA1 Message Date
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 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
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 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 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 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 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
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
pingqiu 4b02f5a4d3 storage: recheck coverage initialization position before publication 2026-11-30 21:26:57 -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
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 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
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
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
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
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 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 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
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
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 e0702a917c Record map cleanup error preservation invariant 2026-11-30 13:41:29 -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
pingqiu ffa6608972 Serve lab heap profiles on the existing status listener 2026-11-30 13:08:56 -08:00
pingqiu a39e295d92 Refuse stale coverage baselines and epoch relabeling 2026-11-30 12:47:26 -08:00
pingqiu 185037ed6e Revert "revert: chunk coverage (#833) until its two integrity fixes land"
This reverts commit 1f4165439c.
2026-11-30 12:47:26 -08:00
pingqiu aacf77535b Add lab-only on-demand heap profiles for blockvolume 2026-11-30 12:41:25 -08:00
pingqiuandClaude Opus 5.5 1f4165439c revert: chunk coverage (#833) until its two integrity fixes land
Two defects that #833 introduced, each shown by a test that fails at
f5926348:
- a format-2 bitmap baseline outlives a discarded WAL suffix
  (Recover returns nil with bitmap position 1 while the retained
  position is 0);
- the legacy FenceChunkStateUpgrade relabels an initialized format-2
  bitmap epoch (7 -> 8).

The fixes exist but are not yet qualified on Linux. Main goes back to
its state before #833; the feature returns as one PR with the fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:37:50 -08:00
pingqiuandClaude Opus 5.5 f0c11ac181 storage: chunk record shadow: bounded production check test; extras judged for cuts that proceed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:32:57 -08:00
Ping Qiu 51984cefac Merge pull request #833 from seaweedfs/feature/v11-chunk-coverage
Add durable per-block chunk coverage and upgrade boundary
2026-11-30 12:29:40 -08:00