Commit Graph
4464 Commits
Author SHA1 Message Date
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 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
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
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
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 65795f4206 storage: SPACE red for the chunk record shadow at the 1 TiB shape
Heap per chunk after a cut, 262,144 chunks: stated 520 B in total and 56 B
for the shadow's share (measured 481 and 48).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:37:48 -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
pingqiuandClaude Opus 5.5 50bc8fe6ba test(blockvolume): process-level ports are claimed host-wide; a child's failure shows its log
Two CI jobs on one host (tp04 runs two runners) each run shards 1 to 4, so
their shard slices of the test port ranges are the same: a port one job
probed free could be bound by the other before its blockvolume did, and
the child exited with status 1 before it was adopted. Every port picker now
also takes a host-wide flock on /tmp/swblock-test-port-claims/<port>.lock,
held for the test process's life (the kernel drops it at exit). A child
that exits, or does not log in time, now fails the test with the tail of
its own log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:31:58 -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
pingqiuandClaude Opus 5.5 9146ecf598 storage: chunk record shadow review fixes
- the barrier check scans only the engine's candidates; the full scan of
  the record is test-only
- a pending proposal's captured chunks are committed in the record at
  the settlement that finds it landed (resolvePending, SettleDetach)
- extra record candidates are findings across the whole package's tests
- M5 diagram and table show the foreign-root fence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:27:18 -08:00
pingqiuandClaude Opus 5.5 6075b713c5 docs: invariant rows for the chunk record shadow and the foreign-root fence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:01:24 -08:00
pingqiuandClaude Opus 5.5 8db613cb01 storage: test the chunk record's BASE-completion event
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:01:24 -08:00
pingqiuandClaude Opus 5.5 570b884018 storage: drive the chunk record from the engine's events, in shadow
The chunk record (chunk-kernel/2) runs beside the engine's maps: every
write, fill, cut hash, commit and evict reaches it through the kernel,
and each cut's barrier checks that the record names every chunk the
engine captures. It decides nothing and writes no page yet.

A HEAD that moves the chunk root without superseding this holder now
fences the layer (errChunkForeignRoot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:01:24 -08:00
Ping Qiu 7d8c775d2f Merge pull request #836 from seaweedfs/feat/v4b-cut-counters
v1.1 V4-B counters: a cut reports its manifest work
2026-11-30 11:57:48 -08:00
Ping Qiu b08d9a3dd4 Merge pull request #835 from seaweedfs/feat/v11-record-runtime
storage: the chunk record while the volume serves
2026-11-30 11:16:46 -08:00
Ping Qiu a4415e9767 Merge pull request #839 from seaweedfs/ci/pub-rc-own-tag-main
ci: a release candidate publishes only its own version tag
2026-11-30 11:16:08 -08:00
pingqiuandClaude Opus 5.5 c32199b872 ci: move :alpha only for the highest stable version; refuse odd tags
A stable tag moves :alpha only when it is the highest vX.Y.Z tag, so a
later patch on an older line never moves :alpha back. A tag that is not
vX.Y.Z or vX.Y.Z-pre fails the run instead of publishing. The checkout
fetches tags so the comparison sees them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:51:43 -08:00
Ping Qiu 4113709f98 Merge pull request #842 from seaweedfs/docs/v101-engines-notice-main
docs: v1.0.1 note gives advance notice that two experimental engines go in v1.1
2026-11-30 10:50:47 -08:00
pingqiu 3764cb988c docs: v1.0.1 note gives advance notice that two experimental engines go in v1.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6ccd3bfd2e)
2026-11-30 10:49:41 -08:00
pingqiuandClaude Opus 5.5 82498e840d ci: a release candidate publishes only its own version tag
Only a stable-line release tag (vX.Y.Z, no pre-release suffix) moves the
public :alpha and sha-* image tags; a release candidate (vX.Y.Z-rc.N)
publishes its version tag alone. The workflow also runs only on version
tags and on a manual run from a version tag, never on a branch push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:49:11 -08:00
pingqiuandClaude Opus 5.5 eeaa90de7d cut counters: a bounded HEAD re-read counts its reads; disjointness oracle
boundedManifest (the attach-fetch HEAD read the cut's settlement uses)
counted no root or segment read: each successful fetch is now counted as
it completes, so a later failed fetch keeps the earlier ones. Controls: a
real GetHead under WithAttachFetch counts 1 root and 3 segments on three
shards, and 1 and 1 when shard 1's fetch fails. The lost-answer test
asserts the disjointness that always holds (ManifestNs + HeadReadbackNs <=
TotalNs; the old sum exceeds it by the re-read's 100 ms) and that the read
counts include the re-read's, instead of a timing bound on the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:49:03 -08:00
pingqiu f592634829 Pin coverage format paging through hashed index paths 2026-11-30 10:42:10 -08:00
pingqiu e3f3762e55 Merge main into chunk coverage upgrade 2026-11-30 10:40:22 -08:00
pingqiuandClaude Opus 5.5 624e2814cd test(storage): cleanup joins are non-fatal and budgeted by the test deadline
Each wait is at most 10 s and never past the test's deadline less a reserve;
a cleanup attempts every pending join, then reports the ones that timed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:38:04 -08:00
pingqiuandClaude Opus 5.5 cdf18c1988 cut counters: ManifestNs is the commit check's; sends are counted as they complete
Review: ManifestNs summed every manifest span of the attempt, so a HEAD
re-read after a lost answer (inside HeadReadbackNs) was counted twice. It
is now the manifest work measured across the commit check only. The
write counts were whole successful ensures: a store wrapper now counts
each acknowledged create of a root or segment, with its bytes, as it
completes; an object already present sends and counts nothing, and a
failed commit keeps what it sent. Tests: a lost-answer cut keeps the slow
re-read out of ManifestNs (with the old sum it reads 60 ms in both);
three-shard full and by-change commits match byte totals computed from
the layout; a failed root send keeps the segment, and the retry sends only
the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:36:07 -08:00
pingqiuandClaude Opus 5.5 88bd3e9181 test(storage): the concurrency tests join only workers not yet joined
A failing path that already took a worker's result no longer leaves the
cleanup waiting on an empty channel; the evict-without-lock mutant now
fails at once instead of timing out in cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:33:30 -08:00