Commit Graph
21909 Commits
Author SHA1 Message Date
pingqiu 92dac05d36 test: verify replay kill status and release failed seeds 2026-11-30 05:47:21 -08:00
pingqiu 25d9867619 test: kill startup WAL replay at record and batch boundaries 2026-11-30 05:47:21 -08:00
pingqiu bab1cf39ad feat: drive chunk kernel from published-state model table 2026-11-30 05:39:37 -08:00
pingqiu 60bb7c8fed feat: add pure model-derived chunk state kernel 2026-11-30 05:39:36 -08:00
Ping Qiu 1f536ae262 Merge pull request #824 from seaweedfs/docs/remote-unavailable-bound-main
docs: remote_unavailable also follows a request that ran out of its 5-minute bound
2026-11-30 05:21:17 -08:00
pingqiu e70a6aef4f docs: remote_unavailable also follows a request that ran out of its 5-minute bound
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit efb91181e0)
2026-11-30 05:19:40 -08:00
Ping Qiu 31bd759ec7 Merge branch 'main' into feat/v4a-commit-by-change 2026-11-30 04:45:35 -08:00
Ping Qiu d0b859e630 Merge branch 'main' into test/powerloss-replay-main 2026-11-30 04:45:32 -08:00
Ping Qiu 0f1f316d44 Merge pull request #821 from seaweedfs/ci/pr-tp04-main
ci: run Test for same-repo pull requests on the self-hosted runner
2026-11-30 04:41:57 -08:00
pingqiuandClaude Opus 5.5 48e1e7f53f ci: run Test for same-repo pull requests on the self-hosted runner
The hosted queue held every same-repo pull request's Test job for more than
an hour today, which blocked gate fixes and reviewed work alike. Same-repo
pull requests now run Test on the tp04-seaweed-block label, as main pushes
and train branches already do. Pull requests from forks keep the hosted
runner, so no fork code runs on our machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:38:27 -08:00
pingqiuandClaude Opus 5.5 84fcbe99a0 test(storage): the census registers ChunkStateMarker as a read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:43:32 -08:00
pingqiuandClaude Opus 5.5 5b0c981632 storage: the record's completion reads the synced position, at open
completeChunkRecord takes P from the store's synced position, not the
assigned one, and refuses while a write is assigned but not synced: the
completion runs at open, after recovery and before guest I/O.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:37 -08:00
pingqiuandClaude Opus 5.5 38077535e7 test(storage): the record's header is not written ahead of the synced store
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:37 -08:00
pingqiuandClaude Opus 5.5 5b95b66f8d storage: the record's header is written only over current pages; positions ahead are refused
completeChunkRecord fences, reads the store's durable position after the
fence, and writes the header (G = that position) only when every page is
present, passes its check and is valid through exactly that position. The
loader refuses positions ahead of the recovered store: an unfinished record
must equal it, a complete record's G may not pass it, a page ahead of it is
damaged. Pages carry the segment's candidate count, the segment name its
published marks refer to, and the kernel table version (chunk-kernel/2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:37 -08:00
pingqiuandClaude Opus 5.5 0e1b46eed4 test(storage): stale pages are never completed; positions ahead are refused
Three reds on the production store: a header written over pages that miss
an old writer's acknowledged write after a half fence; an unfinished record
whose pages are ahead of the recovered store; a complete record whose header
position is ahead of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:37 -08:00
pingqiuandClaude Opus 5.5 0a2d86dc44 docs(invariants): the chunk record's position check, as a STUB row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:36 -08:00
pingqiuandClaude Opus 5.5 78819fc994 storage: the record reader checks the store's position before the pages
An unfinished record is used only when every page is valid through the
store's last durable position after recovery; a page behind it missed
writes, for example ones an old version acknowledged between the pages and
the fence, and the upgrade builds the record again from the presence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:36 -08:00
pingqiuandClaude Opus 5.5 b62d2d99d5 test(storage): an unfinished chunk record behind the store is never trusted
The record pages, their header, and a reader. The red: pages are written,
the fence is left half done, a writer that does not keep the pages
acknowledges a write, and the new version opens again with the store still
marked; the reader takes the pages that miss that write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:42:36 -08:00
Ping Qiu 62baf79eb1 Merge pull request #814 from seaweedfs/docs/v101-note-main
docs: v1.0.1 release note; drop the stale "coming in v1.0.1" lines
2026-11-30 03:41:38 -08:00
pingqiu e7b3851f38 test: classify the chunk-state fence as a control operation 2026-11-30 03:41:30 -08:00
pingqiuandClaude Opus 5.5 70b324940d docs: README says main is v1.1 in development; v1.0.x ships from release-1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:35:15 -08:00
pingqiuandClaude Opus 5.5 37bcd38af8 test: a checked commit by change is reused only by that commit
Controls: the changes mutated after the check (in the map, or through a
reference the caller holds), a full check then a commit by change and the
reverse, a commit after the session was aborted, and a commit by change
with no check first each do their own preparation and lookups and refuse
an object no session of theirs wrote; HEAD is unchanged. Positive
controls: an unchecked commit by change of prepared objects commits, and
a new check after an abort adopts the upload. A reuse check that ignores
the changes and mode fails every refusal case. The capability test also
checks that the bound wrapper forwards CASHeadDelta with its binding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:27:39 -08:00
pingqiuandClaude Opus 5.5 68368152df test: the seam guards and wrappers know the commit by change
CASHead's body moved into casHead, shared with CASHeadDelta, and
checkCommit serves CheckCommit and CheckCommitDelta: the HEAD-reader,
ObjectsChecked-writer, ownGen and session-field site guards name the new
sites (same behaviour, one more caller). The durable test wrappers that
forward CheckCommit forward CheckCommitDelta too, and the capability test
checks that the bound wrapper forwards the check by change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:15:16 -08:00
pingqiu 6c5a1b42e4 docs: trace the chunk-state slot fence to its model rules 2026-11-30 03:09:02 -08:00
pingqiu c13cb1641a docs: register the inactive chunk-state upgrade fence invariant 2026-11-30 03:06:27 -08:00
pingqiuandClaude Opus 5.5 790dec3387 storage, chunkstore: CASHeadDelta, a required commit by change on the seam
chunkRemote gains CASHeadDelta and chunkCommitChecker CheckCommitDelta:
the new HEAD's identity and the changed chunks (nil: zeros). LayoutRemote
reads HEAD's current root and the changed shards' previous segments only,
writes their new segments and the root (PrepareRootDelta), and looks up
the new chunks, new segments and root; an unchanged segment is not read,
written or looked up. Compile-time assertions bind LayoutRemote and
MemChunkRemote to the seam; the durable provider's bound wrapper forwards
both with its binding. The engine still calls the full-map CASHead and
CheckCommit until V4-B, which removes them.

The counting test: a one-chunk commit by change on three shards touches
only the changed shard's segments, creating one segment and one root, and
installs the HEAD the full commit of the same change would; the full
commit touches every shard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:00:31 -08:00
pingqiu 34fa00eb7b Make power-loss replay verification use a causal cut boundary
(cherry picked from commit 5c679df1cf)
2026-11-30 02:46:36 -08:00
pingqiu 108bc97677 docs: operator guide states the 5-minute request bound, not measured figures
The restore-target delete and the snapshot timeout paragraphs keep the
contract that follows from the server's 5-minute bound for one request and
drop the figures measured before the performance round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8719e9cace)
2026-11-30 02:46:20 -08:00
pingqiu dd9ed22f0a test: restart the upgrade fence after a legacy publication 2026-11-30 02:45:39 -08:00
pingqiu 1b3a4b6a3e storage: fence chunk-state upgrades across both descriptor slots 2026-11-30 02:43:52 -08:00
pingqiuandClaude Opus 5.5 5433ecd049 layout: plan a commit by change (CommitRequest.Delta)
A CommitDelta carries HEAD's current root, the previous segment of each
changed shard and the changes. Its plan builds only the changed segments
and the root, and looks up only the new chunks of this volume, the new
segments and the root: an unchanged segment is named by HEAD's current
root, as an unchanged chunk is. The gate: for random images and changes
the delta plan names the full plan's root, base and changed owners, and
its lookups are the full plan's without the unchanged segments. A base
root that does not hash to its name is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 02:43:40 -08:00
pingqiu 6113f8d345 docs: v1.0.1 note adds the start checks and later fixes; no unmeasured figures
Adds the start-up checks operators meet (workspace lease required, the
conditional HEAD probe, the stricter single-filer check, exit 79), the
snapshot position, schedule, upload and fsync fixes, and the forced-move
JSON. Limits are stated without performance figures measured before the
performance round; the gate line stays until the release gates end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5c1c1c75b4)
2026-11-30 02:42:23 -08:00
pingqiuandClaude Opus 5.5 ea296c7c06 layout: build a root by change (ApplySegment, RootWith, BuildDelta)
A commit by change rebuilds only the changed shards: each from its
previous segment and the changed entries, the root from the previous one
with those shards replaced. Pure functions; nothing visits an unchanged
shard. The gate: for random images and change sets the delta root is the
root Build of the whole new manifest names, and the new segments are
exactly Build's segments the previous root does not name. A previous
segment that is not the base's is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 02:40:48 -08:00
pingqiu a224d22234 docs: v1.0.1 release note; drop the stale "coming in v1.0.1" lines
The note lists what v1.0.1 adds and fixes, its upgrade, limits and known
limits, checked against this branch. README, troubleshooting, the cleaning
page and the operator guide no longer call those changes unreleased; the
operator guide describes the CLI's own repeat of 5-minute requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e883ade9be)
2026-11-30 02:39:35 -08:00
Ping Qiu 992f702ffe Merge pull request #809 from seaweedfs/docs/verify-flags
docs: verify checks every named snapshot; drop the refused --all-snapshots
seaweed-block/v1.0.1-rc.1
2026-11-29 23:57:47 -08:00
pingqiuandClaude Opus 5.5 f79c1cad19 docs: verify checks every named snapshot; drop the refused --all-snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:32:13 -08:00
Ping Qiu f04eb25afd Merge pull request #808 from seaweedfs/ci/format-v3-tag
ci: run the format v3 tagged tests, five BASE tests skipped by name
2026-11-29 23:19:39 -08:00
Chris LuandClaude Opus 5.5 df59c81a8c master: record when the cluster started (#13121)
* topology: record when the cluster started

StartedAt rides on MaxVolumeIdCommand; the first non-zero value wins so
replayed or racing entries cannot move it, and the max volume id mirror
file keeps it across raft state loss.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* master: carry StartedAt through raft apply and snapshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* master: leader records StartedAt once per cluster

The leader records it right after the topology id. A cluster that predates
the record gets the time its first upgraded leader runs. /dir/status shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: use current StartedAt values

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* topology: never lower the mirrored max volume id

A mirror rewrite for a StartedAt change could carry a bound older than
one already persisted. Keep the highest bound, and read StartedAt under
the file lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* topology: let the latest applied StartedAt win

With first-wins, a master that restored an older-version snapshot without
the field could record a second value while the others kept the first.
Following the raft order makes every master converge on the same value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:12:46 -08:00
Chris LuandClaude Opus 5.5 d49876a7aa filer: every filer store reads KV keys in batches (#13119)
* filer: read KV keys a few at a time for a store without batch reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* abstract_sql: read KV keys with one query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* redis: read KV keys in one pipeline

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* etcd: read KV keys in read-only transactions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* mongodb: read KV keys with one query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* cassandra: read KV keys concurrently

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* hbase: read KV keys concurrently

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* elastic: read KV keys concurrently

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* arangodb: read KV keys with one request

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* foundationdb: read KV keys in one transaction

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ydb: read KV keys with one query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* tarantool: send KV reads before waiting for any

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* filer: every filer store reads KV keys in batches

KvBatchGet moves from the optional KvBatchReader onto FilerStore. A listing
now reads the hard link records of its waiting entries together from any
store, a path-specific one included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* tikv: count only the record reads of a listing in its test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* filer: return every batched key that pads to the same stored row

SQL, MongoDB and YDB pad a short KV key with zero bytes, so "short" and
"short\x00" read the same row. KvBatchGet kept only the last such key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* filer: read keys in a plain loop when KvGetEach runs one at a time

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:10:49 -08:00
pingqiuandClaude Opus 5.5 c915e21903 ci: run the format v3 tagged tests, five BASE tests skipped by name
The swblock_format_v3_test tags never ran in CI. Five durable tests
install a BASE on a chunk store, which no production path does; they are
skipped by name until their rewrite, so every other tagged test gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:10:33 -08:00
Ping Qiu 1f8d63ad67 Merge pull request #807 from seaweedfs/docs/replicated-stale-reads
docs: a cut-off replicated primary is not stopped by a lease and may serve stale reads
2026-11-29 22:06:47 -08:00
Ping Qiu 470099723a Merge pull request #806 from seaweedfs/ci/train-test-self-hosted
ci: run a train PR's Test suites on the self-hosted runners
2026-11-29 22:05:44 -08:00
Ping Qiu 069121e06d Merge pull request #805 from seaweedfs/train/20261130-t3
train: four accepted v1.0.1 PRs (filer client check, HEAD probe, final revocation refusal, snapshot schedule)
2026-11-29 21:36:29 -08:00
pingqiuandClaude Opus 5.5 bbebfd2d6f docs: a cut-off replicated primary is not stopped by a lease and may serve stale reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:34:35 -08:00
pingqiuandClaude Opus 5.5 133e3f7745 ci: run a train PR's Test suites on the self-hosted runners
The organization's shared hosted queue held train PRs 30 to 55 minutes
before their suites started, while the team's runners, which already
run the same suites on every push to main, were idle. Only train/*
branches of this repository select them; every other PR, forks
included, stays on GitHub-hosted machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:25:11 -08:00
pingqiu 33b05fb17b Merge main f269e0ed (#797, #795) into train/20261130-t3 2026-11-29 20:41:16 -08:00
Ping Qiu f269e0ed2e Merge pull request #795 from seaweedfs/docs/master-uncertain-latch
docs(operator-guide): an uncertain workspace record refuses a volume's lease until blockmaster restarts
2026-11-29 20:18:16 -08:00
Ping Qiu 1abc8dc5ba Merge pull request #797 from seaweedfs/docs/invariants-anchor-files
docs(invariants): cite each anchor's own file; BASE retire gate DORMANT
2026-11-29 20:02:05 -08:00
pingqiu 6939b1446f Merge #802 7f3decb7 into train/20261130-t3 2026-11-29 19:59:58 -08:00
pingqiu 78c73da039 Merge #798 bf833228 into train/20261130-t3 2026-11-29 19:59:57 -08:00