Commit Graph
4926 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 7c5f89f560 sw-block: an explicit --gen 0 is refused before admission; the holder resume has its row
--gen 0 names no incarnation and is refused before any read or write,
on a version-0 and a version-1 HEAD alike; it is not the unpinned
delete. INV-SNAP-DELETE-HOLDER-RESUME-001 states and traces the
holder's resume of its own operation behind an unconsumed intent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:05:42 -08:00
pingqiuandClaude Opus 5.5 cea4274fd4 durable: the provider's assigned format level in its own file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:27:00 -08:00
pingqiuandClaude Opus 5.5 b7d84cbd39 snapshot delete: route on the HEAD version in the CLI and the holder
One shared predicate routes a delete by name on the HEAD's version at
either format level: on a version-0 HEAD the default call is v1.0's
name-only delete, and an explicit --request-id or --gen is refused
typed with nothing written until the volume adopts v1.1; on a version-1
HEAD it is an operation delete. The holder runs its HEAD writes at its
assigned level (DurableProvider.FormatLevel). Controls pin the holder's
version-0 route at both levels, its one resumed operation and terminal
receipt, every operation-tree write on an absent HEAD, and the
receipt behind the CLI's printed id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:25:47 -08:00
pingqiuandClaude Opus 5.5 6102d802d9 Merge main (#945, #950) into the snapshot operations
The v1.0-HEAD decode check keeps both v1.1 fields it refuses: #950's
reserved producer list cursors and this branch's operation bindings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:11:33 -08:00
Ping Qiu 127e25722d Merge pull request #945 from seaweedfs/feat/master-grant-wait-status
master: a late grant on an unreported host degrades the status, naming the volume
2026-12-02 06:07:52 -08:00
pingqiuandClaude Opus 5.5 a24440766e chunkstore: classify the snapshot delete routes' HEAD reads
The CLI's and the holder's delete routes read HEAD to choose the route,
and the shared resolver reads it for admission; each absent-HEAD
behaviour is pinned by a probe (an absent volume's delete by name, the
holder's delete with no HEAD).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:06:05 -08:00
Ping Qiu 70e99438e9 Merge pull request #950 from seaweedfs/feat/v8-producer-reserved
Reserve bounded producer list cursors in HEAD version 1
2026-12-02 06:03:41 -08:00
pingqiuandClaude Opus 5.5 fe73c5ab58 volume: control for the holder's resumed delete behind an unconsumed intent
Two holder deletes in a row on a version-1 HEAD: the second finds the
first one's intent unconsumed, kicks the cleaning, and resumes the same
operation to completion. Red with busy treated as terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:02:15 -08:00
pingqiuandClaude Opus 5.5 e029e9edfb volume: the holder's snapshot delete routes on the HEAD version
On a version-1 HEAD the holder's control route runs an operation delete
of the incarnation the name holds now, under an id made per request (a
new request is a new intent). A run that finds the previous delete's
intent unconsumed or HEAD moved kicks the cleaning and resumes the same
operation, bounded, so no request leaves its operation stalled. The CLI
and the holder share one admission resolver. The volume tests' holder
projection carries format level 1, a new cluster's, so their v1.1
creates pass the attach-level guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:00:44 -08:00
pingqiuandClaude Opus 5.5 1f8969b809 sw-block: snapshot-delete names its incarnation and can pin it
The delete prints the incarnation it resolved (name@gen) with its
request id, and the no-wait answer carries it; --gen deletes only that
incarnation and is refused typed when the name holds another. Retries
inside one invocation keep the id and the incarnation; a new invocation
resolves the name again, and a recreated name is what it deletes. The
name-only primitive (an old client's) still refuses a v1.1 HEAD. The
snapshot operation commit passes the shared format guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:50:01 -08:00
pingqiuandClaude Opus 5.5 492a56f279 master: the held-old/new snapshot control holds only the older snapshot
A non-blocking one-shot guard holds snapshot A alone (B passes the hook
without blocking, so a read outside the lock lets B finish during A's
hold), the newer wait's first-seen time is pinned to B's, and A's
completion and B's join are bounded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:45:02 -08:00
pingqiuandClaude Opus 5.5 53befc1a78 sw-block: snapshot-delete routes on the HEAD version and the cluster level
At cluster format level 0 a delete by name of a version-0 HEAD's
snapshot is v1.0's name-only delete, chosen before any operation record
is written. On a version-1 HEAD, or at level 1, it is an operation
delete under --request-id or an id made once per invocation and printed
for resume. The level is the master's answer (--master), 0 without one
or when it cannot be read, and every HEAD write runs at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:44:00 -08:00
pingqiu 18ffa85a40 Regenerate status schema for the pending-work skip reason 2026-12-02 05:40:59 -08:00
pingqiuandClaude Opus 5.5 0e433ad908 master: a status snapshot reads its placements under the grant-wait lock
The waiting set's placements are read inside the lock that reconciles
it, so a snapshot that read older placements can never reconcile after
a newer one and drop the wait it started. A held-old/new control pins
it. host.go is rewritten without the carriage returns the previous
commit added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:37:28 -08:00
pingqiuandClaude Opus 5.5 9c2722ace7 docs: the snapshot incarnation row names the tolerant-read tests
A version-1 HEAD with a zero generation is refused on write and read
tolerantly; the row names the rewritten tests and checkWrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:32:01 -08:00
pingqiuandClaude Opus 5.5 8228e3943d Merge main (#939, #942) into the snapshot operations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:32:01 -08:00
pingqiuandClaude Opus 5.5 92d85c9419 Merge main (#925, #933) into the snapshot operations
Conflicts resolved to main: runTransition runs the format guard, then
the generation stamp, then checkWrite, and the receipt guard follows.
The duplicate strict decode is dropped: a version-1 HEAD with a gen-0
entry reads tolerantly and is stamped on write; the write check refuses
it. Its two tests are rewritten to those semantics. A bound snapshot's
publishing gen must equal its operation's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:30:27 -08:00
pingqiuandClaude Opus 5.5 d16bd533d5 master: one status snapshot reconciles the grant waits at a time
The waiting set and its first-seen times are computed and reconciled
under one lock, so a concurrent snapshot never drops an entry another
just started (its wait would restart).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:28:21 -08:00
pingqiuandClaude Opus 5.5 9f5988d03f master: grant waits as one reconciled set per server and volume
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:25:49 -08:00
pingqiuandClaude Opus 5.5 fbcf09fcb9 master: a late grant on an unreported host is a warning naming the volume (r2.877)
An idle unreported host stays info. A host holding a placed volume that
has waited for its grant past the startup window (the freshness window,
from when this master first saw it waiting) is a warning naming each
such volume and its wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:25:49 -08:00
Ping Qiu b6ccca62f9 Merge pull request #942 from seaweedfs/feat/master-format-level-read
master: read-only format level, a new cluster starts at level 1
2026-12-02 05:24:46 -08:00
pingqiu 9a4fc847a6 Report newer pending work when list retirement is skipped 2026-12-02 05:20:35 -08:00
Ping Qiu 641affc88c Merge pull request #949 from seaweedfs/fix/create-recover-progress
storage: a new store's own recovery reports its fence through the create options
2026-12-02 05:17:10 -08:00
pingqiu 4c90321088 Reserve bounded producer list cursors in the v1.1 HEAD format 2026-12-02 05:06:28 -08:00
pingqiuandClaude Opus 5.5 ee55f6b1a8 storage: a new store's own recovery reports its fence through the create options
createWALStoreV3Configured recovered the new store with a background
context, so the fence of that recovery reported no progress although the
provider passes RecoveryProgress on create; on a slow disk the startup
window could end inside it. It now recovers with the options' observer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:54:59 -08:00
pingqiuandClaude Opus 5.5 0de6ed79e7 master: the lease refusal kinds test measures the level-0 barrier on an upgraded cluster
TestLeaseRefusalKinds measures v1.0's barrier (65 s after the grant) and
assumed a fresh master is at format level 0; a new cluster now starts at
level 1, whose barrier is the lease deadline plus the skew (50 s). The
test runs on an existing (upgraded, not finalized) cluster's store and
asserts level 0 before the BARRIER case; the level-1 barrier stays
covered by TestTheForcedBarrierFollowsTheFormatLevel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:52:16 -08:00
pingqiuandClaude Opus 5.5 70f477b34a Merge main (#939) into the format-level read
Keeps both sides: #939's finalize-format exit codes and JSON answer
beside the format-level read in sw-block cluster_format.go, and #939's
typed move refusal (text plus reason) with the move target refused only
on a known-old report (placementTooOld), whose reason is binary_too_old.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:40:04 -08:00
Ping Qiu f0050b0465 Merge pull request #939 from seaweedfs/feat/finalize-format-typed
sw-block: finalize-format and a refused move answer with typed fields
2026-12-02 04:36:44 -08:00
Ping Qiu f54fc487d0 Merge pull request #943 from seaweedfs/fix/b1-candidate-followups
storage: a clean-fill touch request cannot hide from a cut
2026-12-02 04:20:31 -08:00
pingqiuandClaude Opus 5.5 d713a40a79 master, storage: prove the born-v1.1 restart and the ownerless grant
The restart test pins the durable completed compare record before the
reopen and counts zero compares across the restart and its first cut.
A publication control with two servers reporting the same slot at
different endpoints shows the ownerless grant judges the server at the
ask's endpoints: level 1 granted, level 0 refused, unreported not granted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:18:30 -08:00
Ping Qiu d370582710 Merge pull request #938 from seaweedfs/fix/recovery-stalled
host: recovery_stalled counts every synced startup slice and pauses for the master's authority wait
2026-12-02 04:11:34 -08:00
pingqiuandClaude Opus 5.5 6abb5dd7b5 master, storage: a store created at level 1 is born v1.1; grant an ownerless line on its observed server
A store created at format level 1 writes its upgrade-pass record as
done at creation, so it never runs the compare pass, also when it
restarts before its first cut. A publication whose line has no recorded
owner is judged on the server whose live observation reports the ask's
slot at its endpoints, not on an empty server id. The format-eligibility
invariant row names the heartbeat-recording test and states the
placement/grant split; the RDMA failover test's hosts report their
reads level before any grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:03:58 -08:00
pingqiuandClaude Opus 5.5 feb70ac198 storage: an aborted cut reissues the touch request (red); the row in the approved wording
A cut that took a recovery's clean-fill request and aborts (its copy
window cannot install) reissues the request under a fresh generation:
a new red checks the next cut still covers the fills. The ordering row
takes the approved wording: a reader clears by a CAS on its own
generation, a barrier takes the request before the set, and an aborted
cut reissues it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:57:43 -08:00
Ping Qiu dfc25c9c72 Merge branch 'main' into fix/b1-candidate-followups 2026-12-02 03:47:11 -08:00
pingqiuandClaude Opus 5.5 858720738c storage: no upgrade pass on a store this start created
A new volume's store (an empty HEAD, every chunk local and zero) is
unknown only because its upgrade had no seed; the first cut takes its
chunks as candidates. The procedures' first snapshots were refused
in_progress by that pass. A restart before the first cut runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:43:06 -08:00
pingqiuandClaude Opus 5.5 9b6114bfe3 storage: the held-sync control bounds every wait and owns its worker
Waiting for the held slice and for the recovery's return is bounded, and on
every exit the test releases the hold, joins its recovery worker (bounded)
and only then closes the store, so a regression fails the test instead of
hanging it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:36:38 -08:00
pingqiuandClaude Opus 5.5 49ca6baf55 durable: the authority pause follows every transition, not only the first grant
A grant whose attach failed and whose authority was then lost returned to
the wait without a new pause, so the master's resumed wait could read as a
stall. The pause now starts whenever authority is missing and ends at each
grant, before the local attach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:30:23 -08:00
pingqiuandClaude Opus 5.5 ca588f0045 sw-block: the --json mode is read from the arguments as a whole
A flag bound to the same variable let a partial parse overwrite the mode:
--json --bogus --json=false answered in JSON and the reverse did not. The
flag is now declared for parsing and help only; the mode is the arguments'
last --json, read before parsing. Both orders are pinned, with no RPC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:23:34 -08:00
pingqiuandClaude Opus 5.5 151c10b327 storage: pin the touch-request CAS; join paused readers on every exit
A newer recovery request published while an older reader is between
listing and clearing must stay pending: a new red pins the reader's
compare-and-swap on its own generation. The paused reader is released
and joined by a cleanup that runs before the hook and oracle resets on
every exit, and both reader tests run in a bounded child process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:22:10 -08:00
pingqiuandClaude Opus 5.5 ecc3a1fd05 storage: the fresh-store test asserts no pass exists, not only none running
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:18:58 -08:00
pingqiuandClaude Opus 5.5 3ae32cba3d blockvolume: the real holder on a new cluster reports level 1 and is granted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:16:37 -08:00
Ping Qiu 59eef13285 Merge pull request #944 from seaweedfs/fix/checkpoint-single-retire
storage: the owned-map checkpoint retires its dirty entries once
2026-12-02 03:14:02 -08:00
pingqiuandClaude Opus 5.5 2ac97a00a5 storage, master: no pass on a fresh store; old heartbeats accepted (r2.881)
A v1.1 store with no unknown chunk and no rebuilt page starts no upgrade
compare pass and holds no cut, cursor or not: a fresh volume's chunks are
absent, so a new cluster's first snapshot runs at once (the process-level
procedures were refused in_progress). A heartbeat is accepted and its read
level recorded whatever it reads; an old binary is refused at the grant.
Test fakes that stand for v1.1 hosts in other packages report reads_level 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:12:35 -08:00
pingqiuandClaude Opus 5.5 cb542b3c21 host, durable: the authority pause ends at the grant and latches silence before it
Review fixes. The provider ends the stall window's pause when authority is
granted, before the local attach, so a stuck attach is a stall again; the
first authority wait latches silence that already filled the window, so the
pause cannot hide it and its end cannot erase it. The held-sync and
held-attach tests release their holds before Close on every exit, and the
real prezero gets a sync seam with an order and a failed-sync control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:05:09 -08:00
pingqiuandClaude Opus 5.5 1d60144e70 storage: the owned-map checkpoint retires its dirty entries once
publishCheckpointV3 already sets the checkpoint and retires every dirty
entry at or below it under the store lock; its owned-map caller walked
the dirty map a second time for nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:50:58 -08:00
pingqiuandClaude Opus 5.5 1618411850 master: awaiting_first_report is info, a spare host does not degrade the cluster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:47:51 -08:00
pingqiuandClaude Opus 5.5 d1247a7eef docs: the touch-request ordering row in the model's wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:47:25 -08:00
pingqiuandClaude Opus 5.5 d5ab11512e master: the held-ask downgrade replaces v's own process
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:46:33 -08:00
pingqiuandClaude Opus 5.5 02ccbd700d master: bindings and admitted reservations count as existing state; the retry test starts its host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:40:44 -08:00
pingqiuandClaude Opus 5.5 c7f7f016e9 master: the grant reads the holder process's own report
The publication boundary checks the (server, volume) entry of the
process that will serve the volume, never the server's lowest level
over its other processes: a sibling's report says nothing about this
process's binary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:35:28 -08:00