Commit Graph
4969 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 fcf6b0ec41 Merge main (#955) into the snapshot operations
The holder's maintenance now consumes a published delete intent, so a
delete behind an earlier one resumes once its intent is consumed. The
model-code trace keeps both sides' new rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:41:21 -08:00
Ping Qiu df6ba7f031 Merge pull request #955 from seaweedfs/feat/v8-delete-consumer
Resume persisted snapshot delete intents through holder maintenance
2026-12-02 08:35:34 -08:00
Ping Qiu eb17287328 Merge pull request #937 from seaweedfs/feature/905-wal-pressure-hold
fix: hold WAL writes while reclaim progresses and preserve command FIFO
2026-12-02 08:24:05 -08:00
pingqiu 39f9f1878b test: use a fixed clock for legacy iSCSI budget 2026-12-02 07:57:59 -08:00
Ping Qiu 6204b88608 Merge pull request #956 from seaweedfs/feat/retire-preview-typed
sw-block: retire-host answers 0/2/75/1 with --json; a forced move's preview carries the typed reason
2026-12-02 07:53:56 -08:00
pingqiu 9f3afc3c71 test: bound WAL reservation witness and cleanup 2026-12-02 07:48:36 -08:00
pingqiuandClaude Opus 5.5 4411f2dc59 docs: the name-delete row names the --gen 0 refusal; the holder resume row states its bound
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:46:28 -08:00
pingqiuandClaude Opus 5.5 a13f2d6fdf sw-block, master: a failed --json answer fails the command; a retire's storage failure is Internal
Review fixes. When the --json answer cannot be written, retire-host and
finalize-format exit 1 instead of 0. A retire whose record removal failed
answers Internal (the CLI's failed, exit 1), not FailedPrecondition (refused,
exit 2); the node store's test hook can fail a removal for the control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:31:45 -08:00
pingqiu 3cf172045a Mark reachable intent consumption and list retirement in the ledger 2026-12-02 07:14:58 -08:00
pingqiu 4488a94dd5 test: pin WAL hold silence and reservation continuity 2026-12-02 07:07:34 -08:00
pingqiu bd81736768 Scope the snapshot-delete consumer split and its resweep contract 2026-12-02 07:06:51 -08:00
Ping Qiu 24fa0b776b Merge pull request #954 from seaweedfs/test/windows-locked-reads
storage: test: three tests read a locked store file through the store
2026-12-02 07:05:42 -08:00
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
pingqiu b8bca3382e Pin shared image and object state across queue refusals 2026-12-02 07:04:41 -08:00
pingqiu 7fd40ec621 Bound intent decoding by the fixed candidate shard 2026-12-02 07:04:41 -08:00
pingqiuandClaude Opus 5.5 59a0ebca91 sw-block: retire-host answers 0/2/75/1 with --json; a forced move's preview carries the typed reason
retire-host follows finalize-format's contract: exit 0 retired, 2 refused,
75 the master could not be reached, 1 any other failure or usage error, and
--json prints result, reason, server, volumes and message for every outcome.
The master's HOST_HOLDS_WORK refusal names each held volume in its typed
metadata. The forced-move preview answers the typed reason the move itself
would carry (reason_code, e.g. BINARY_TOO_OLD), and force-move --dry-run
--json shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:04:38 -08:00
pingqiu def2a78fac Resume persisted delete intents through holder maintenance 2026-12-02 07:04:09 -08:00
pingqiu 7b8aeafbd1 Return typed backpressure for the pending reclamation slot 2026-12-02 07:03:41 -08:00
pingqiu b32c94a8c1 Expose non-flat decoded work in cleaner counting controls 2026-12-02 07:03:41 -08:00
pingqiu 053dc41774 Test two intent consumers settling a refused cursor write 2026-12-02 07:03:41 -08:00
pingqiu ae0af6eed7 Test delete intent work at full manifest geometry 2026-12-02 07:03:41 -08:00
pingqiu eaf456d5e0 feat(chunkstore): resume delete intents and retire abandoned list pages 2026-12-02 07:03:41 -08:00
Ping Qiu b77089cb2f Merge pull request #951 from seaweedfs/test/slow-extent-budget
storage: test: the slow-extent red tolerates a slow fsync
2026-12-02 06:52:27 -08:00
pingqiuandClaude Opus 5.5 0dbe9b9191 storage: test: three tests read a locked store file through the store
Three tests read or damaged the store file through a second handle while
the store held its byte-range lock: mandatory on Windows, so they failed
there only. They now go through the open store's own file: the slots by
slotsV3Of, a record by damageOpenRecord. What they assert is unchanged.

Fixes #953.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:39:03 -08:00
pingqiu ede1e4d3b0 perf: reserve uncontended WAL appends without a queue ticket 2026-12-02 06:34:21 -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
Ping Qiu 14016ef705 Merge pull request #948 from seaweedfs/fix/b1-candidate-followups-2
storage: touched-set bookkeeping: attach allocation, drained pause, status
2026-12-02 06:24:50 -08:00
pingqiu ea15eb8f37 test: pin WAL hold timing and reordered append controls 2026-12-02 06:21:20 -08:00
pingqiu c88b152f98 Merge remote-tracking branch 'origin/main' into feature/905-wal-pressure-hold 2026-12-02 06:14:41 -08:00
pingqiu 7f1468973d docs: preserve UTF-8 in transport contract edits 2026-12-02 06:12:42 -08:00
pingqiu f43a47105a fix: keep device write budget out of FUA sync 2026-12-02 06:11: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 4c4e753b61 storage: test: the slow-extent red tolerates a slow fsync
TestWALStoreV3SlowExtentKeepsReclaimMoving flaked on a busy Windows
host: a single slow fsync pushed one bounded cycle past its 500 ms
admission budget (attempts of 500-577 ms, against cycles whose writes
take about 77 ms). The slow disk is now 5 ms per extent write and the
budget half a whole-map cycle from the measured sleep (about 1.2 s): a
bounded cycle (about 160 ms of writes) leaves room for a slow fsync,
and a whole-map cycle (about 2.4 s) still outlasts the budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:51:03 -08:00
pingqiu 2f9a4cc689 perf: share WAL command arrival state with its hold 2026-12-02 05:50:25 -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
pingqiu c652a6a2f7 perf: notify only the next WAL admission waiter 2026-12-02 05:46:31 -08:00
pingqiuandClaude Opus 5.5 ce48465298 storage: #948 tests: bounded close, exact union, exact pause deltas
The direct-attach test bounds its Close as mustAttach does. The status
test pins the exact union of live and in-flight candidates during an
upload (distinct and overlapping) and the in-flight part leaving after
HEAD installs. The drained-pause test pins exact deltas: 2k for k dirty
chunks, 2N for a whole-volume pass, and nothing carried over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 05:46:27 -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