Commit Graph
3548 Commits
Author SHA1 Message Date
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
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 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 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 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