Commit Graph
1582 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 c7f7f016e9 master: the grant reads the holder process's own report
The publication boundary checks the (server, volume) entry of the
process that will serve the volume, never the server's lowest level
over its other processes: a sibling's report says nothing about this
process's binary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:35:28 -08:00
pingqiuandClaude Opus 5.5 744d238163 master: the format gate at the grant, not the placement (r2.875)
Placement (create, move, restore target, a failover candidate) refuses
only a host known to read a lower level, typed BINARY_TOO_OLD: with one
process per volume and create-then-start a placement target cannot have
reported yet. The grant (an authority line published to its holder)
needs the holder's own report at the cluster level; no report, no grant.
awaiting_first_report stays only as a status state; its refusal reason
is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:27:24 -08:00
pingqiuandClaude Opus 5.5 8393c98931 master: first reports before placement in two fixtures; viewer and fsync controls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:19:34 -08:00
pingqiuandClaude Opus 5.5 c182734c0c master: a new cluster only when every master store is empty
The lifecycle stores (volumes, nodes, placements, deletions) open before
the format decision and count: an empty authority store over an existing
inventory is not a new cluster and starts at level 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:14:56 -08:00
pingqiuandClaude Opus 5.5 36d797cf01 master: read-only format level, a new cluster starts at level 1
LifecycleService.FormatLevel answers the cluster's format level (a
viewer's read; sw-block cluster format-level). A master that finds no
prior authority state writes the level-1 envelope before it serves;
existing state keeps its level, so only a cluster holding v1.0 data
needs the finalize. Above level 0 a node that has not reported its read
level is refused new work typed and retryable (AWAITING_FIRST_REPORT),
and the cluster status shows it awaiting report. The master tests' fake
hosts report reads_level 1 as a v1.1 host does; the FormatGate upgrade
tests start from a store in v1.0.x's form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:07:57 -08:00
Ping Qiu 16bdd6bbd8 Merge branch 'main' into feat/v11-declare-format 2026-12-02 01:11:46 -08:00
pingqiuandClaude Opus 5.5 1e40d947da Merge main into the declare-format branch: the HEAD guard with the stamp
runTransition now runs the format level guard first (it refuses only a
raise of HEAD from version 0 to 1 below level 1; stamping never changes
the version, so a refused write is never stamped), then the write-time
snapshot stamp, then the write check. The stamp tests run a v1.1
holder's cut at level 1; the v1.0 landing control pins v1.0 whatever the
package mode. Both invariant rows are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:34:27 -08:00
pingqiuandClaude Opus 5.5 9c536f5038 Merge main and fix/nvme-command-retry-delay
Conflict in docs/design/invariants.md: main added INV-FE-NVME-CANCEL-001
where this branch adds INV-NVME-RETRY-DELAY-001 and
INV-NVME-HOST-BEHAVIOR-001; all three rows kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:02:19 -08:00
Ping Qiu 062f94470d Merge pull request #932 from seaweedfs/fix/929-nvme-connection-cancel
Cancel NVMe provider readiness waits when the target closes
2026-12-01 23:53:45 -08:00
pingqiuandClaude Opus 5.5 aebf1d42c7 storage: a v1.1 attach needs a remote that takes the HEAD format
SetHeadFormat reports whether the remote took the format; the provider's
wrapper answers false over a remote without it, so a v1.1 attach refuses
before anything local is written instead of upgrading behind a v1.0
writer. A provider test over the real layout store proves the assigned
level decides the stored HEAD bytes across a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:48:59 -08:00
pingqiuandClaude Opus 5.5 2184f8049b Merge branch 'main' into fix/nvme-command-retry-delay
Conflict in core/frontend/nvme/session.go: main added the rate-limited
write-failure log before the completion status; this branch computes the
status through the session (negotiated retry delay). Both kept: the log,
then s.completionStatus(res).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:39:55 -08:00
pingqiuandClaude Opus 5.5 efc5180595 docs: the attach level's home in the format-level row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:33:24 -08:00
Ping Qiu fa16e037d9 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 23:32:53 -08:00
Ping Qiu 4831af27ce Merge branch 'main' into fix/929-nvme-connection-cancel 2026-12-01 23:32:37 -08:00
pingqiuandClaude Opus 5.5 4184e30af4 storage, layout: the attach level comes from the assignment; one HEAD write guard
The host keeps the format level of every assignment no older than the
newest, the frontend projection carries it, and the provider attaches the
chunk layer at it (absent = 0). At level 0 the attach reads HEAD first: a
version-1 HEAD runs v1.1 (reported behind), a v1.1 store under a
version-0 HEAD is refused, anything else stays v1.0. A v1.1 attach over a
remote without the HEAD format is refused. The layout's one HEAD write
path refuses a write that raises HEAD from version 0 to version 1 below
format level 1, whichever writer tries; writers supply their level in
their context. The running format is in the chunk stats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:32:23 -08:00
Ping Qiu e06bc933f6 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 23:14:17 -08:00
Ping Qiu 0cf187152d Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 23:11:54 -08:00
Ping Qiu 45926a51f5 Merge branch 'main' into fix/929-nvme-connection-cancel 2026-12-01 23:09:22 -08:00
Ping Qiu 8ee5abbe53 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 22:52:19 -08:00
Ping Qiu 5085b13695 Merge branch 'main' into fix/record-commit-needs-hash 2026-12-01 22:51:17 -08:00
pingqiu d5da9b1dd1 Merge remote-tracking branch 'origin/main' into feat/v11-declare-format 2026-12-01 22:29:28 -08:00
Ping Qiu 7f8367c495 Merge pull request #913 from seaweedfs/feat/format-gate-master
master: cluster format level (FORMAT-GATE): finalize-format, level-0 v1.0 semantics, retire-host
2026-12-01 22:28:14 -08:00
pingqiuandClaude Opus 5.5 9a4078e17a storage: the v1.1 format follows the assigned level, not a build tag
A chunk layer decides its format once at attach from its config's
FormatLevel and the store's marker: level 1 upgrades a v1.0 store; level
0 keeps it on v1.0; a store already on v1.1 at level 0 is served over a
version-1 HEAD (reported as format_level_behind_volume) and refused over
a version-0 HEAD (format_level_behind_store). The layout remote's HEAD
format follows its layer (SetHeadFormatV11) and reports the version it
read (HeadV11). Every production attach is level 0 until the assignment
carries the master's level, so a release build keeps writing v1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:27:16 -08:00
pingqiu 64b36ffa50 fix(nvme): cancel connection readiness waits when target closes 2026-12-01 22:13:03 -08:00
pingqiuandClaude Opus 5.5 4753c7ed20 storage: guard that v1.1 extent writes never land an absent chunk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:56:14 -08:00
pingqiuandClaude Opus 5.5 f8b3b85989 storage: the record's Commit needs a hash it holds
On a v1.0 shadow a cut can capture a written absent chunk while its
absence stands (no Hash), and the flusher can then complete the chunk's
local bits (P to U, no version change) before the publish. The publish's
Commit met U and the kernel refused it. Commit is now sent only when the
record holds the chunk's hash (HU or HP); the chunk stays a candidate.

Fixes #922.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:25 -08:00
Ping Qiu 9f5b8ad37e Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 21:32:01 -08:00
pingqiu-cpu 2ffeb31b2f Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 20:28:46 -08:00
pingqiuandClaude Opus 5.5 a4c4e83e62 layout: every version-1 HEAD write stamps unstamped snapshots
runTransition stamps each snapshot without a publishing generation with
the write's generation whenever the result is a version-1 HEAD, and a
write check refuses a version-1 HEAD with an unstamped snapshot. Reads
stay tolerant. A v1.1 commit's new snapshot and an upgraded volume's
legacy snapshots can now be deleted by their captured target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:25:01 -08:00
pingqiu 1b9dbbaea3 feat: negotiate NVMe command retry delays for transient readiness 2026-12-01 20:15:19 -08:00
pingqiuandClaude Opus 5.5 72e429830c storage: the guest pause does O(1) work; the candidates are judged after it
In the pause, a cut now syncs (H), takes the touched set and the dirty set
by pointer swaps, and opens the copy window over what they name (a
superset of the candidates, a lookup per chunk). Everything per candidate
runs after the pause, under the window: the judgement (WAL entries up to
H), the known-equal filter, each candidate's version, staged reuse, the
record shadow check, the base refs, the copy-order hint and the
HEAD-behind refusal. The window then narrows to the candidates.

- A candidate's version at the barrier is read atomically with the write
  path: the version a guest write's save recorded with its bytes, else the
  live one under the window lock. The window closes on a chunk only after
  its version is read and it is uploaded.
- A refusal before the judgement returns the taken sets (touched again,
  the dirty set rejoins l.dirty). After it, the existing requeue does.
- A pre-copy attempt keeps its drained frontend drained through the
  judgement and decides its freeze on the judged tail, as before: its guest
  pause runs to that release.
- The record shadow check exempts chunks written since the barrier (the
  live touched set): the record already counts those writes.
- PauseCandidateOps counts per-candidate operations while the guest is
  paused; it is 0 for an ordinary cut. The cut body and the status schema
  carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:58:17 -08:00
pingqiu 30bbbbc46d Merge remote-tracking branch 'origin/main' into feat/o1-upgrade-pass 2026-12-01 19:45:13 -08:00
pingqiuandClaude Opus 5.5 349fc1ba5a docs: INV-FMT-RETIRE-001 names the retire as the registry's only writer after start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:54:37 -08:00
pingqiuandClaude Opus 5.5 306831c07f storage, volume: candidate set review: absent-to-present touch, oracle, telemetry
- A fill's install (absent to present) touches its chunk: a fetch that
  outlived a same-open recovery installs HEAD's bytes with no clean mark,
  and the full scan made that chunk a candidate; now the touched set does
  too (TestAFillThatOutlivesARecoveryMakesItsChunkACandidate, which fails
  without the touch).
- Under this package's tests every barrier runs the full scan as an oracle
  (candidateOracle, nil in production) against the barrier's candidates
  with l.dirty and allDirty; a chunk it finds that the set missed is a
  finding. The whole package runs with 0 oracle findings.
- chunk_layer.go carries the table of each predicate input that moves and
  what touches the chunk, including the clears that need none.
- The cut body (/chunk/cut) and the status schema carry CandidateVisits and
  PreSyncNs.
- The unknown-outcome guard compares the remote's full images (any store
  format) and asserts the injected cut's outcome is unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:52:10 -08:00
pingqiuandClaude Opus 5.5 9cf074d480 docs: format-gate invariants; v1.1 note: going back works until the format finalize
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:27:56 -08:00
pingqiuandClaude Opus 5.5 ead21f46b1 storage: the upgrade pass rewinds below its cursor; a write supersedes a compare
A page rebuilt at open leaves its chunks unknown again behind the pass's
cursor (completed or partial): the attach now rewinds the cursor, durably
and before the layer admits any request, to the first unknown chunk. A
chunk written between the pass's read and its hash is superseded by the
write: not hashed, not counted as compared, reported (Superseded); it is
dirty and the next cut takes it, also after a restart. A failed attach
joins the record writer it started. The pass tests hold the pass at a
barrier inside a compare instead of racing a timed walk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:23:14 -08:00
pingqiu 3a5381eebc Merge remote-tracking branch 'origin/main' into feat/v8-list-codecs 2026-12-01 18:19:51 -08:00
pingqiuandClaude Opus 5.5 a9724ba81e docs: the cut's candidate set by change
INV-WAL-V3-CAPTURE-CANDIDATES-TOUCHED-001 states the touched set and the
pre-barrier sync; the v1.1 notes carry them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:19:45 -08:00
Ping Qiu aeb0078902 Merge branch 'main' into feat/v8-snapshot-generation 2026-12-01 17:41:24 -08:00
Ping Qiu 4655664cf5 Merge pull request #903 from seaweedfs/fix/cgroup-unresolved-fallback
blockvolume: an underivable cgroup memory limit starts on the default
2026-12-01 17:40:12 -08:00
pingqiuandClaude Opus 5.5 e73f30530e docs: regenerate the status schema for Stats.UpgradePass
The status schema's generated block comes from the code: the hand-written
rows are replaced by the generated ones, with the field comments on
UpgradePassStatus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:35:27 -08:00
Ping Qiu ce071bdbf1 Merge branch 'main' into feat/v8-snapshot-generation 2026-12-01 17:15:51 -08:00
pingqiuandClaude Opus 5.5 812fcffb35 storage: the attach runs the upgrade compare pass; sealing requests wait
After a v1.0 store's upgrade with no clean-stop seed every whole local
chunk is unknown. The v1.1 attach now runs the compare pass (resuming at a
persisted cursor, or starting when the record holds an unknown chunk); it
compares each unknown chunk with HEAD by the cut's own transitions. A stop
never waits for it: the pages and cursor of the work done are persisted
and the next attach resumes. Until it ends, a cut, snapshot, backup or
sealing detach is refused typed (ErrUpgradePassInProgress, HTTP code
in_progress) and the pass runs at full rate. Holder status reports
Stats.UpgradePass {State, Compared, Total, Outcome}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:15:16 -08:00
Ping Qiu fb30cd8f80 Merge pull request #887 from seaweedfs/test/v11-format-tag
build: the draft v1.1 store format gets its own tag, apart from the cap lift
2026-12-01 16:52:06 -08:00
Ping Qiu 728ce66160 Merge pull request #901 from seaweedfs/fix/head-version-v11
layout: a v1.1 commit writes HEAD version 1, the manifest size known or not
2026-12-01 16:44:02 -08:00
Ping Qiu cb945c4a73 Merge branch 'main' into feat/v8-snapshot-generation 2026-12-01 16:34:15 -08:00
Ping Qiu fe3f484a88 Merge branch 'main' into fix/cgroup-unresolved-fallback 2026-12-01 16:21:04 -08:00
Ping Qiu 061a8cd302 Merge branch 'main' into fix/head-version-v11 2026-12-01 16:10:52 -08:00
Ping Qiu 6612fa036b Merge branch 'main' into feat/v8-snapshot-generation 2026-12-01 16:06:59 -08:00
pingqiu e0cbd1198d Refuse generic staging of snapshot delete intents 2026-12-01 15:58:06 -08:00