Commit Graph
3577 Commits
Author SHA1 Message Date
pingqiu 25b9eeaedb test: decode current restore and HEAD command results in process fixtures 2026-11-26 00:43:27 -08:00
pingqiuandClaude Opus 5.5 bea2b7e20e Head-size fixture reads the store through its layout paths
The fixture read <chunk-path>/<name>/HEAD and counted top-level segments
in it, and counted <name>/keys: names the layout no longer writes (a 404,
or a silent 0). It now resolves the store directory <name>-<id8> from
blockmaster's record, decodes HEAD, counts the segments of its current
root, and counts the volume's pool objects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:17:52 -08:00
pingqiuandClaude Opus 5.5 1131ad58b0 Restore targets in the procedure harness are placement only
startHandoffEnvWith imported each target as an ordinary volume record, so
the first restore into it was refused as target_exists (bound to another
restore request). Targets now carry placement only and their restore
creates them; startHandoffEnvVolumes keeps the old form for the tests that
start their extra volumes without a restore. Assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:14:18 -08:00
pingqiu 957970d634 Merge the handoff layout identity cache fix 2026-11-26 00:09:04 -08:00
pingqiuandClaude Opus 5.5 cbe25d20f9 test: triage of the tagged run: --master, exit 78, the cleaning pass
- ops chunk show and snapshots built as argument slices get --master;
  the guard now also checks []string{"ops", ...} literals.
- A returning old host after a forced move exits 78 with reason=moved
  (the master's typed MOVED refusal), as the product documents.
- TestProcedureStartTooEarlyExitsAndARestartServes is retired: a start
  before the barrier now waits through it and is re-granted, which
  TestProcedureStartInsideTheBarrierWaitIsReGranted covers.
- ops chunk gc is gone: D4 deletes through the holder, whose cleaning
  pass removes exactly the deleted snapshot's chunks from the pool; the
  headroom test asserts the source snapshot of a waiting restore target
  cannot be deleted and keeps its chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:09:04 -08:00
pingqiu d65c44d849 test: initialize the handoff layout identity cache on first resolve 2026-11-25 23:59:26 -08:00
pingqiuandClaude Opus 5.5 1e1d1f3628 test: the killed-mid-fill test's reader is concurrent, not background
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:44:48 -08:00
pingqiuandClaude Opus 5.5 86b81c66a8 test: leave the operator guide to the docs change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:34:44 -08:00
pingqiuandClaude Opus 5.5 b7e1180eda test: restore targets fill on access; the guard covers run calls
v1 has no background fill: hydrate reads one block of every chunk, then
requires none absent, and the killed-mid-fill test drives its fill with
a background reader. The guard also checks the harness's run calls, and
the show and snapshot-delete calls it found get --master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:31:44 -08:00
pingqiuandClaude Opus 5.5 9d98268850 test: the CLI guard runs its calls from a temporary directory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:24:32 -08:00
pingqiuandClaude Opus 5.5 252d30ace7 test: the process-level tests run the current CLI
A guard runs every literal `sw-block ops ...` call in cmd/blockvolume's
tests through the CLI's own argument handling, so a call the CLI refuses
fails CI instead of a lab run. The calls it found are brought to the
current CLI: --master on restore and snapshot commands, the removed
restore driver and fork replaced or dropped, and the killed-mid-fill
test converted to background hydration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:22:19 -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