Commit Graph
3573 Commits
Author SHA1 Message Date
pingqiu f3ce4a511f docs: state the operator HEAD view contract
The former operator examples named the retired storage HEAD fields remoteLSN and detachedBy and called live state active. Document the current ops chunk show wrapper and exported layout.Head field spelling: Position, ClaimID, empty live State, detached State and Current. The detached HEAD is the stop image; generation is record readout. This supplies the operator contract for the procedure HEAD-view fixture migration. No product behavior changes.
2026-11-26 00:41:57 -08:00
pingqiuandClaude Opus 5.5 e4177679e1 docs: what the blockmaster restart for a restore target does to serving volumes
Adding a restore target to the cluster spec means restarting blockmaster.
Serving volumes ride through a restart answered within 10 s; a longer one
is fail-closed (fence at lease end, exit 75, serve again after the barrier,
at least 50 s after the restart), each with the test that shows it. The
start-wait text no longer describes a start that ends before the barrier,
and the operator guide's host-loss step says the returning old host exits
78 and is not restarted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:35:07 -08:00
pingqiuandClaude Opus 5.5 72fc5ae349 docs: restore targets are placement-only; old host after a forced move exits 78
A restore target is listed in the cluster spec with its placement and no
size_bytes, so the restore creates its record with the snapshot's
geometry; an entry with size_bytes creates an ordinary volume and the
restore into it is refused with target_exists. The old host after a forced
move exits 78 (reason=moved) and is not restarted. The started-too-early
gate row is removed (a start now waits through the barrier), and the
headroom test name is updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:25:37 -08:00
Ping Qiu 11a1af3e05 Merge pull request #641 from seaweedfs/docs/current-restore
docs: restore as v1 ships it; fork removed
2026-11-25 23:54:38 -08:00
pingqiuandClaude Opus 5.5 1c7d619ded docs: an older blockmaster copy can reuse epochs; no promised refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:46:15 -08:00
pingqiuandClaude Opus 5.5 004fd30d35 docs: restored-volume snapshots, release, and three operator rules
A restored volume takes no scheduled snapshot until its device has been
read once; a manual one names the source's chunks and cannot be
restored. ops chunk release is a repair step. The lifecycle rules name
one blockmaster per cluster, no restore of its directory from an older
copy, and that a deleted volume's name cannot be created again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:43:57 -08:00
pingqiuandClaude Opus 5.5 3bc43a6879 docs: restore as v1 ships it; fork removed
Restore is created with --master and fills on access (no restore driver,
no background copy); its source snapshot stays a dependent for the
target's life. Fork and template retirement are not in this release.
The documented show, snapshots and snapshot-delete commands get the
required --master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:53 -08:00
Ping Qiu c83b5ffc62 Merge pull request #629 from seaweedfs/feat/standalone-failover-cli
feat(sw-block): ops failover for standalone; the alpha stack deploys the manual failover
2026-11-25 22:12:26 -08:00
pingqiu 1822110220 Merge main into feat/standalone-failover-cli
# Conflicts:
#	cmd/sw-block/main.go
#	core/authority/directive.go
2026-11-25 21:52:39 -08:00
Ping Qiu 5d58337c3f Merge pull request #638 from seaweedfs/fix/pool-read-verify
storage: typed error for a pool chunk off its HEAD ref; read-verify controls
2026-11-25 21:32:26 -08:00
Ping Qiu 506c8f9b24 Merge pull request #636 from seaweedfs/fix/restarted-primary-new-endpoint-version
authority: a restarted primary is re-issued its line at a new endpoint version
2026-11-25 21:20:11 -08:00
pingqiuandClaude Opus 5.5 30c2f43579 tests: gofmt the cut test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:16:49 -08:00
pingqiuandClaude Opus 5.5 49f8c1630d tests: read-verify controls compare extent bytes; cut test tracks the child to exit
Review amendments (no product change):
- storage: both refusal controls read the chunk's blocks from the extent
  file before the refused fill and after it, and require them unchanged;
  a fill that installs damaged bytes and then refuses is now red (it left
  absent and localBlocks untouched, so the old assertions passed).
- chunkstore cut test: the child's stdout is read to EOF, so an upload
  begun during the delay or the kill is counted; CUT-ERR at any point
  fails the round; the child must have died by SIGKILL; objects 0..last
  (at least the first four) are validated every round (an object never
  begun must be absent) and all of them are completed by a new session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:16:32 -08:00
pingqiuandClaude Opus 5.5 cb3f8a1da7 test: the overlap control's target report is fresh
The master test's freshness window is one second; a target report one
second old had already expired, so no report was found at its endpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:03:42 -08:00
pingqiuandClaude Opus 5.5 74ac7294fc blockvolume: pin that the command adopts only lines naming its process
A guard on hostConfig's LinesNameTheirProcess, the refusal control also
checks nothing is recorded, and the M3 diagram and table state the
adoption guard (the row maps to M2 refresh and M3 adoption).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:48:06 -08:00
pingqiuandClaude Opus 5.5 8ddb61001e storage: typed error for a pool chunk off its HEAD ref; read-verify controls
Every read of a pool object already verifies its bytes against the name
twice: the layout reader (ErrCorrupt -> ErrRemoteDamaged) and the
engine's fill (sha256 and size against the HEAD ref). The engine's
refusal was an untyped string; it is now ErrChunkContentMismatch, on the
read-miss fill and on the cut COW fill alike.

Controls:
- storage: a seeded chunk whose bytes are flipped, truncated or extended
  is refused with ErrChunkContentMismatch on a guest read miss and on
  HydrateAll; nothing is served or installed, and once the remote serves
  the named bytes the same reads return HEAD's data.
- durable, end to end over the real layout remote: a chunk captured to
  the pool, its blob damaged under the filer entry, a fresh replica
  attached from HEAD: the guest read fails with a typed error and never
  returns the stored bytes; restored, it reads HEAD's data.
- chunkstore (real filer, chunkstore_integration): a child uploading
  pool objects through EnsureObject is SIGKILLed at random points over
  many rounds; each object it began is absent or holds exactly the bytes
  its name hashes, and a new session completes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:42:03 -08:00
pingqiuandClaude Opus 5.5 a6f7eca84b authority: a line is issued for the process at its endpoints
The incarnation source looks up the slot at the ask's endpoints, never
the same replica reported by another host. A production volume adopts
no line that names no process; the target's first report re-issues it
once for that process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:38:58 -08:00
pingqiuandClaude Opus 5.5 7642b2c8e0 authority: the workspace writer and ask dedupe keep the line's process
The workspace record writer copies the line's incarnation, so a lease or
journal write no longer erases it before a reload; a queued refresh for
one process is replaced when another reports at the same address; the
RefreshEndpoint transition names the restart case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:21:02 -08:00
pingqiuandClaude Opus 5.5 7863d9e1f1 authority: asks built outside the controller record the target's process
A heal, a planned or workspace move or an operator's request names no
incarnation; the publisher records the one the target reports now, so
the promoted process's first report re-issues nothing. The volume's
refusal of a line issued for another process now comes before anything
of it is recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:14:30 -08:00
pingqiuandClaude Opus 5.5 18f39b9646 authority: a restarted primary is re-issued its line at a new endpoint version
A primary restarted at the same epoch and address started its sessions
at 1 while each replica held the dead process's higher one, so every
session was refused as older. The line now records the process it was
issued for (durable); a current primary reporting another process is
re-issued its line at the next endpoint version, and a primary adopts no
line issued for another process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:07:02 -08:00
Ping Qiu 69c078a7fc Merge pull request #635 from seaweedfs/fix/commit-no-new-foreign-ref
layout: a commit never adds a reference to another volume's chunk
2026-11-25 20:05:17 -08:00
pingqiuandClaude Opus 5.5 fbe5dc01e9 layout: another volume is told by name and id
A volume re-created under the same name is another volume, so a commit's
reference is own only when both the owner's name and id are this
volume's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:54:54 -08:00
pingqiuandClaude Opus 5.5 a35e5bf159 layout: a commit never adds a reference to another volume's chunk
A restore target keeps or drops its source's references and never gains
one, so a dependency stays one step deep: RunCommit refuses a manifest
that holds another volume's chunk at an index where the previous manifest
did not hold that same chunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:47:54 -08:00
Ping Qiu e5bb90c4e2 Merge pull request #634 from seaweedfs/feat/standalone-volume-resolve
feat: resolve standalone volume layout identity from the master
2026-11-25 19:38:30 -08:00
Ping Qiu 54232d8c87 Merge pull request #606 from seaweedfs/fix/precopy-cold-estimator
fix: let cold pre-copy stops converge from measured rounds
2026-11-25 19:38:26 -08:00
Ping Qiu e9c4c57b43 Merge pull request #632 from seaweedfs/fix/one-session-order
replication: one session order per replica
2026-11-25 19:25:53 -08:00
Ping Qiu 503f48cd93 Merge pull request #633 from seaweedfs/feat/readd-retained-base-status
feat: a replica refused a rebuild for a retained base reports rebuild_retained_base (v1 limit)
2026-11-25 19:24:36 -08:00
Ping Qiu 0ca3a47352 Merge pull request #630 from seaweedfs/test/skip-ahead-lsn-refused
transport: a replica applies a live entry only at its next LSN
2026-11-25 19:22:53 -08:00
pingqiu 477ac30e13 fix: distinguish retryable volume resolution from final refusal 2026-11-25 19:15:04 -08:00
pingqiu 7d9e1b0a34 docs: name the volume resolver mutual TLS environment 2026-11-25 19:12:21 -08:00
pingqiu 3de99a839c feat: resolve standalone volume layout identity through the master 2026-11-25 19:09:59 -08:00
Ping Qiu f96eb41e57 Merge pull request #613 from seaweedfs/ci/model-action-trace
Require model action citations for mapped files
2026-11-25 19:05:11 -08:00
pingqiuandClaude Opus 5.5 eef225587f test: two fixtures ship at the store's next LSN
The lane-routing harness gets a store, and the ingress version test
starts from a replica that holds 1..119, so their live entries arrive at
the next LSN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:03:29 -08:00
pingqiuandClaude Opus 5.5 f46a8f8d75 fix(volume): a replica latched on a retained base is never ready for promotion
Its image could not be brought up to date, and the latch clears only on a
completed rebuild: a probe or fencing round answer from it is never
ready, so no promotion (automatic, the operator's failover or a planned
move, each requiring the target's ready answer) can make it primary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:59:12 -08:00
pingqiuandClaude Opus 5.5 eb9ad5cb41 docs(volume): the self-fence object is the replica listener
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:56:23 -08:00
pingqiu 4501633bd3 test: align cold estimator expectations and preserve layout settlement 2026-11-25 18:55:18 -08:00
pingqiuandClaude Opus 5.5 d6d1664b3a feat: a replica refused a rebuild for a retained base reports rebuild_retained_base
A replica removed and added back with its older store cannot be rebuilt
on v1 (its BASE is still installed). The store now returns the typed
storage.ErrRebuildRetainedBase, the replica listener keeps that refusal
until a rebuild completes, and the volume host reports it on its
heartbeat slot as rebuild_retained_base (ineligible), naming the replica.
The operator guide gives the recovery: wipe the data directory, re-add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:50:45 -08:00
pingqiuandClaude Opus 5.5 3b1305258f test: a re-added replica with a retained base reports a typed reason (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:50:45 -08:00
pingqiuandClaude Opus 5.5 263602e933 replication: one session order per replica
Live-ship and recovery session ids came from two process-wide counters;
once the live counter ran ahead, the replica refused every recovery as
older. Each replica now has one order, kept by the volume across its
peers and executors, and every session toward it takes the next id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:49:42 -08:00
pingqiuandClaude Opus 5.5 c2fe9dc639 test: the mid-recovery write test opens the recovery as a dual-lane session
The recovery begins with BeginEpochRecovery, so the primary's live
session stays admissible and only the invalid epoch table can refuse its
frames; a recovery begun and ended is the control. The test is its own
package so its sessions do not reorder another test's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:37:49 -08:00
pingqiuandClaude Opus 5.5 9379f5c059 fix(k8s-alpha): escape the image for sed as the install scripts do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:27:33 -08:00
Ping Qiu 32eaf872c9 Merge pull request #623 from seaweedfs/test/keep-full-daemon-logs
test: a failed real-process test keeps its daemons' whole logs
2026-11-25 18:26:40 -08:00
pingqiu 111add64b9 test: observe the held layout commit cancellation cause 2026-11-25 18:25:06 -08:00
pingqiu ea2ad6ad96 test: hold the attached layout commit in the freeze deadline probe 2026-11-25 18:24:18 -08:00
pingqiuandClaude Opus 5.5 3ff0a640fd fix(k8s-alpha): render the failback executor with the selected image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:21:01 -08:00
pingqiuandClaude Opus 5.5 b3e6cdd4b0 fix(sw-block): ops failover needs a client identity and tells an unknown outcome from a refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:21:01 -08:00
pingqiuandClaude Opus 5.5 a0ad707ecb fix(authority): the operator's expected line binds the failover through publication
The runtime checked --expect-current once, then ran the gate and published
without it: a move landing in between let the stale request move a line
the operator never saw. The reassign now carries the expected line and the
publisher mints only while the volume's line is exactly it (under its
lock); the gate decides on that same line (reachability and the fencing
round are the expected line's, never one read later).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:21:00 -08:00
pingqiu 585aafaafb ci: map volume creation and replication peer actions 2026-11-25 18:20:45 -08:00
pingqiu d0a2569f9e fix pre-copy stop settlement after late commit 2026-11-25 18:19:53 -08:00
pingqiu 29c342f241 fix: retry unknown stop settlement before serving 2026-11-25 18:19:53 -08:00