Commit Graph
4498 Commits
Author SHA1 Message Date
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
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