Commit Graph
3581 Commits
Author SHA1 Message Date
pingqiu 28f0964b61 Merge main (with #629) into the creation phase 2026-11-25 22:13:07 -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
pingqiuandClaude Opus 5.5 cbd0f12d0c test(master): the endpoint fixture is an established volume
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:07:41 -08:00
pingqiu c84cb4216e Merge #629 (standalone failover) into the creation phase
# Conflicts:
#	core/host/master/failback_runtime_test.go
#	core/host/master/planned_move.go
2026-11-25 22:02:11 -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
pingqiuandClaude Opus 5.5 8c0a4f7123 docs: creation ends at the primary's first ready answer (INV-PROMOTE-CREATION-WAIT-001)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:45:41 -08:00
pingqiuandClaude Opus 5.5 b201bbb74d test(master): fixtures record the first ready answer where the primary served; the restart gap is still creating
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:40:26 -08:00
pingqiuandClaude Opus 5.5 5e520aa762 test(master): the boot-grace fixture is an established volume (first ready answer recorded)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:34:44 -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
pingqiuandClaude Opus 5.5 2eb5fbfcab fix(master): creation ends at the primary's first ready answer at its first line
Not at the last store attestation: a primary restarted after the last
attestation, before it adopts the complete assignment, was no longer
creating by the record and could be replaced. The record now sets
awaiting_first_ready in the same write that clears its initial set, and
clears it, durably and for good, at the line's primary's first ready
answer; until then the volume is creating. A record written before the
field existed carries none, so an established volume is never reopened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:28:41 -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 9b1c5c89a1 refactor(master): one inCreationPhase decision every replacement entry calls first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:39:38 -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 5364850447 test(master): drop the delete-of-a-stuck-creating-volume test pending a ruling (the delete is refused today)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:31:15 -08:00
pingqiuandClaude Opus 5.5 aa66ad56a2 test(master): creation phase: operator entry, master restart, delete of a stuck volume
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:30:41 -08:00
pingqiuandClaude Opus 5.5 3a36ddcf5b docs: INV-PROMOTE-CREATION-WAIT-001 is the creation phase, decided on the master's record
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:29:31 -08:00
pingqiuandClaude Opus 5.5 3d6b0031ac test(master): creation-wait tests follow the creation phase; remaining fixtures record their stores
A creating volume is no longer replaced when its primary is not ready for
another reason, answers a stale epoch, or has an unacceptable slot: no
promotion decision is even probed (the owner's ruling and its model).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:23:38 -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 291bc47b53 test(master): fixtures of established volumes record their replica stores
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:17:06 -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 1f13ab3bb0 fix(master): creation is its own phase: no replacement decision for a creating volume
A volume whose first line has not reached Healthy is never subject to a
replacement decision: no reassign, no fencing round, no heal at a higher
epoch. One predicate, checked first in both gates and in the operator's
move: the master's record still awaits a replica store, or the current
primary's own answer says its assignment at this line's epoch awaits
them. The creation-wait excuse that judged such a primary ready (and so
let the supported gate fence its replicas at e+1 and heal the primary at
e+1 before epoch 1 was ever healthy) collapses into it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:04:20 -08:00
pingqiuandClaude Opus 5.5 c24f9913b7 test(master): a creating volume runs no fencing round on the supported gate (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:02:51 -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