Commit Graph
4568 Commits
Author SHA1 Message Date
pingqiu 8f639975d3 Merge main into bindings verifier 2026-12-01 02:05:55 -08:00
pingqiu c967152e63 docs: qualify inline and replicated needle verification 2026-12-01 01:32:59 -08:00
Ping Qiu e09cdeb2f0 Merge pull request #867 from seaweedfs/fix/volume-directory-collision
fix: recover pending volume creates from id8 directory collisions
2026-12-01 01:27:09 -08:00
Ping Qiu 4f98d0ef38 Merge pull request #866 from seaweedfs/feat/v4b-pr3a
V4-B 3a: HEAD record version 1 with manifest sizes; on v1.1 a cut of a partial chunk fills it
2026-12-01 01:26:33 -08:00
pingqiu 95abcb3183 fix: verify backing needles with HEAD and retain exact chunk hashes 2026-12-01 00:42:47 -08:00
pingqiuandClaude Opus 5.5 c42dbc95a3 layout: a HEAD of a newer version is malformed to every caller, named as newer
ErrHeadNewerVersion now wraps ErrMalformed: every caller that refuses a
malformed HEAD for good refuses a newer one the same way (Start stays a
final refusal, never a retry loop), and its text says to use a newer
binary. The Start classification table pins it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:24:53 -08:00
pingqiu 697afeedf8 fix: validate owner identity before verify deduplication 2026-12-01 00:19:15 -08:00
pingqiuandClaude Opus 5.5 8bdbc05ba9 layout: omit an empty ext from Head's own JSON
Head's Go JSON (the status and CLI show output) wrote a nil Ext as null,
which reads back as the bytes null, and the ext check then refused the
HEAD as a v1.0 record carrying ext. Ext is now omitted when empty, so a
HEAD without ext reads back without one; a v1.1 HEAD keeps its ext.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:06:55 -08:00
pingqiu 950d636e93 fix: verify chunk bindings without reading their bodies 2026-12-01 00:03:07 -08:00
Ping Qiu 78994e9ba8 Merge pull request #865 from seaweedfs/test/rejoin-diagnostics
test: the rejoin failure reports both replicas' log tails
2026-11-30 23:57:36 -08:00
pingqiu da17629e75 docs: split collision invariants into single properties 2026-11-30 23:55:47 -08:00
pingqiuandClaude Opus 5.5 6eb191c38f storage: on v1.1 a cut of a partial chunk fills it; events take the store's bits
M1: on the v1.1 format the HEAD bytes a cut's COW copy fetches for a
partial chunk are also installed beneath its local writes, and the
absence is resolved as a fill (held until the store's batched mark), so
the cut's Hash meets U and the next cut finds the chunk local. Recover's
run-time Changed takes an absent chunk's coverage from the store's bits,
and the engine bitmap's landing no longer sends Write(all). Release
builds are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:32:54 -08:00
pingqiuandClaude Opus 5.5 b84f55ba3e chunkstore: keep an unchanged touched segment in the size; ext is a canonical object
A commit by change subtracts only the touched segments its new root no
longer names: a shard whose segment came out unchanged stays in the size.
HEAD's ext must be a JSON object in its canonical bytes, on encode and
decode, so it round-trips byte for byte. The format doc states the
upgrade order (version-aware readers before any v1.1 writer) and that the
fullest-HEAD figure is a sizing check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:30:43 -08:00
pingqiuandClaude Opus 5.5 e4e34c26a6 chunkstore: keep the manifest size through commits; list it per snapshot
On the v1.1 format a full commit writes the sum of its root and segments
as HEAD's current_bytes and the named snapshot's manifest_bytes. A commit
by change subtracts the base root and the replaced segments and adds the
new ones, with no lookups; an unknown size stays unknown. Snapshot
listings report manifestBytes, null when unknown. The format doc states
the ext contract; a test bounds the fullest HEAD under the inline limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:30:43 -08:00
pingqiuandClaude Opus 5.5 ac85a9dc2b layout: HEAD format version 1 with a verbatim ext; manifest sizes as v1.1 fields
- version first (absent: v1.0, strict as before); every known version is
  strict at the top level, later fields live in ext, kept raw and written
  back verbatim, so the canonical-bytes check holds
- a HEAD of a newer version is refused as ErrHeadNewerVersion, not
  ErrMalformed; a v1.0 HEAD carrying v1.1 fields is malformed
- CurrentBytes (Current's manifest size) and a snapshot's ManifestBytes,
  written by the commit that knows the size (which makes HEAD v1.1); a
  snapshot's size is written once
- the HEAD write census gains version, current_bytes and ext

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:30:43 -08:00
pingqiu 3616d42946 docs: record checked collision redraw automaton 2026-11-30 23:29:24 -08:00
pingqiu 5c5c57055d fix: settle pending identity before create metadata enrichment 2026-11-30 23:15:44 -08:00
pingqiu ffe16608dd fix: redraw pending volume identity after directory collision 2026-11-30 23:06:30 -08:00
Ping Qiu 13d0627043 Merge pull request #864 from seaweedfs/fix/holder-cgroup-memory
blockvolume: derive the default Go soft memory limit from its cgroup
2026-11-30 22:59:12 -08:00
Ping Qiu 406a2375fd Merge pull request #653 from seaweedfs/test/store-down-causal-cut
test: the store goes down inside the cut by construction
2026-11-30 22:43:48 -08:00
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
pingqiu e5aeb426d7 blockvolume: classify parser sites and refuse unresolved mount roots 2026-11-30 22:37:34 -08:00
Ping Qiu f25774ec4d Merge pull request #844 from seaweedfs/test/wallclock-budgets
test(durable): wall-clock tests wait for their events with deadline-aware budgets
2026-11-30 22:34:05 -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
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
pingqiuandClaude Opus 5.5 5a9f2a66c2 test: stillHeld reads the held call's own context
A caller can give up before the front's handler is scheduled to notice,
leaving the left channel open; the check reads the held request's context
first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:04:08 -08:00
pingqiuandClaude Opus 5.5 15381ee7eb test: the store-down test proves the held upload was still waiting at the kill
The filer front records when the held call leaves and why (the test's
release, or its caller giving up); the test checks the hold is still
waiting right after the store goes down, else the run is inconclusive.
E1_TEST_DELAY_KILL delays the kill past the upload's timeout as the
negative control. The post-restart HEAD reads carry the wait's absolute
deadline, and the side-file census fails on any error but a file removed
while it is walked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:59:00 -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
pingqiu 9f899120e3 blockvolume: resolve cgroup mounts and skip discovery for version 2026-11-30 21:52:29 -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 d8fb4f681c test: every event wait is clamped to the time the test has left
eventBudget is asked again for each wait and is at most the time left
before the test's deadline less a reserve, with no fixed minimum, so no
wait outlives the deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:47:32 -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 c6ac6cc103 storage: a final upload answer keeps an earlier full-store answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:45:18 -08:00
pingqiu 987ac097eb docs: clarify cgroup v2 sizing and explicit memory configuration 2026-11-30 21:44:36 -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
pingqiuandClaude Opus 5.5 4426d07ba4 test: the store-down test finds copy-on-write side files under the volume's directory
A store now lives in its volume's own directory (<name>-<id8>) and its side
file is created next to it; the test globbed only the host root, so it
measured 0 and its no-leftover checks looked nowhere. It walks the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:44:33 -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 60e482f978 blockvolume: derive the default Go memory limit from its cgroup 2026-11-30 21:40:44 -08:00
pingqiu 7fed355a20 storage: align checkpoint snapshots with record-page readers 2026-11-30 21:39:02 -08:00
pingqiu 7e9467a9ed ci: run tests at ready 2026-11-30 21:37: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 567d8beff6 Hold extent draining during the sparse stop test upgrade 2026-11-30 21:37:36 -08:00
pingqiu 3efd222215 Read map checkpoint observations without scanning live extents 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