Commit Graph
3541 Commits
Author SHA1 Message Date
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
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
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
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
pingqiu 50a82cf34a test: settle applied pre-copy detach at freeze deadline 2026-11-25 18:19:53 -08:00
pingqiu 8f73918395 test: hold final pre-copy manifest through freeze deadline 2026-11-25 18:19:52 -08:00
pingqiu 5b2a9947c1 fix: cap pre-copy final freeze at five seconds 2026-11-25 18:19:52 -08:00
pingqiu 1710ca0c3c docs: state the cold pre-copy estimator boundary 2026-11-25 18:19:52 -08:00
pingqiu d94770bca4 fix: let cold pre-copy stops use measured rounds 2026-11-25 18:19:52 -08:00
pingqiu b930dda1a2 test: expose cold pre-copy estimator starvation 2026-11-25 18:19:52 -08:00
Ping Qiu 37de5cda8c Merge pull request #616 from seaweedfs/f4/master-head-one-reader
blockmaster: one HEAD reader, the layout catalog
2026-11-25 18:17:25 -08:00
pingqiuandClaude Opus 5.5 eea052d975 test: a replica mid-recovery is never counted
While a recovery owns a replica's store its epoch table is invalid and its
end may sit above a gap. Such a replica is never a fencing round's target,
also with the highest end, and never completes a sync_all or sync_quorum
write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:16:22 -08:00
pingqiuandClaude Opus 5.5 9dc28cff21 test: the kept daemon log is the whole log
The copy into $SWBLOCK_TEST_LOG_DIR moves to an untagged helper, so a
filesystem-only test runs with the ordinary suite: a log longer than the
kept output is copied byte for byte, an unset directory copies nothing,
and the check refuses a truncated copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:12:01 -08:00
pingqiuandClaude Opus 5.5 662a1d007f transport: the next-LSN rule also holds with the apply gate
The volume's listener always has the apply gate installed, and the gate
checks each block's staleness, not the position, so the live-lane rule
applies on both paths. The tests build the listener as the volume does,
on walstore and smartwal, and check that no live entry lands while a
recovery owns the store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:10:08 -08:00
Ping Qiu aba6a9f040 Merge pull request #625 from seaweedfs/feat/manual-failover-fenced
fix(master): manual failover of a lost primary decides on the fencing round (RF2 and RF3)
2026-11-25 18:03:43 -08:00
pingqiuandClaude Opus 5.5 d072078640 transport: a replica applies a live entry only at its next LSN
Inside an epoch, a live entry above the store's next LSN is refused and
the connection closed; the primary's catch-up from the barrier end then
applies the gap in order. Fixtures that shipped hand-picked LSNs now ship
at the store's next LSN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:56:10 -08:00
pingqiuandClaude Opus 5.5 b948bdac77 chunkstore: an entry time past 2262 is unknown, not a wrapped value
Review: the catalog reader converted the entry's seconds to nanoseconds
without a range check, so an out-of-range mtime (year 9999) wrapped to a
negative time where the HTTP reader had reported it unknown (0). The
conversion is guarded; the master reader's refusal table has the
out-of-range case again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:55:42 -08:00
pingqiuandClaude Opus 5.5 d08cee2315 blockmaster: refuse the removed --workspace-head-base-url at start
v1 reads HEAD through the layout catalog. A unit or script that still
passes the removed flag is refused at start with a typed error
(errRemovedInV1) that names the replacement, --chunk-filer and
--chunk-path, rather than Go's generic unknown-flag message; the flag
is never accepted and ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:53:01 -08:00
Ping Qiu cf4b1ba9fa Merge pull request #626 from seaweedfs/fix/primary-reports-store-wait
master, volume: a primary reports that it awaits replica stores; the gate keeps no state
2026-11-25 17:52:04 -08:00
Ping Qiu f9c7fbf1fd Merge pull request #627 from seaweedfs/test/volume-identity-creation-guards
test: guard VOLUME creation and cryptographic layout ids
2026-11-25 17:48:20 -08:00
pingqiuandClaude Opus 5.5 d759eeefa1 test(master): the unsupported-path heal is dispatched and published, and asks nothing once the line reaches the fenced epoch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:45:43 -08:00
pingqiuandClaude Opus 5.5 76e5b02d3b test(master): the unsupported-path recovery test runs past the pending grace and asserts the volume is unsupported
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:45:06 -08:00
pingqiuandClaude Opus 5.5 0f2182b189 test(master): the failover race barrier fails on timeout; recovery proven end to end through a store fault and a normal tick
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:43:19 -08:00
pingqiu b2a5856e60 docs: state the literal-entry-name guard limitation 2026-11-25 17:38:18 -08:00
pingqiuandClaude Opus 5.5 b8324424c5 volume: the probe answer reads the wait before readiness; no latch
The 'starting' latch could outlive a frontend that opened and failed
between two samples, excusing a real failure. It is gone: the probe answer
reads the replica-store wait before its readiness (the frontend gate reads
the same value), so a not-ready answer names the wait only if the wait
held, and a stores-complete assignment opens the frontend only after the
peers' expected stores are installed. The gate is a guard in the ledger
(INV-PROMOTE-CREATION-WAIT-001); the probe round's copy of the field is
tested on the wire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:38:12 -08:00
pingqiu 5be5e528c2 test: count repository-wide VOLUME creator and constant sites 2026-11-25 17:35:30 -08:00
pingqiuandClaude Opus 5.5 d4416a1e96 docs: the operator's fenced failover in M3 (Part A) and the promotion diagram
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:34:46 -08:00
pingqiu 8b50a9bdba test: enumerate the VOLUME writer and crypto identity source 2026-11-25 17:30:33 -08:00
pingqiuandClaude Opus 5.5 77e150d22e blockmaster: one HEAD reader, the layout catalog
The master read HEAD two ways with two settings: the layout catalog
(filer gRPC, --chunk-filer) for create and restore, and plain filer HTTP
?metadata=true (--workspace-head-base-url) for the workspace move admission
and the revoke ACK. The workspace reader now reads through the catalog it
already dials: BCatalog.ReadHeadObserved returns HEAD, decoded by the same
DecodeLayoutHeadEntry, with the entry's modification time from that same
lookup (seconds, as the HTTP metadata gave it). The proof mapping is
unchanged: identity from the master's lifecycle record, deleting, unclaimed,
detached, generation, epoch, holder and position; an absent HEAD refuses
with ErrHeadAbsent.

The HTTP reader and --workspace-head-base-url are deleted, with the unit's
and the env file's setting and the docs. The master tests run the same
refusal table against a catalog on the in-memory filer (the HTTP-only
redirect and envelope cases have no counterpart). The fixtures that passed
the flag give the master the filer flags instead; the head-size and F1
ladder masters had none and could not dial the catalog at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:29:50 -08:00