Commit Graph
1697 Commits
Author SHA1 Message Date
pingqiu-cpu cfd39b0b26 docs: v1.1 known limitation, list pages left after a volume delete (#977)
Interim merge note (spec trace workflow startup_failure since 22:45Z): docs-only change to the v1.1 release notes on release-1.1 (known limitation 7). go test (linux) and process-level tests (real binaries) passed on a07cebc3; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body (base release-1.1 at 4187ddaf): both pass. Docs review ACCEPT on a07cebc3 (accuracy and public text: no findings).
2026-12-02 21:39:25 -08:00
pingqiu-cpu 4187ddaffd docs: v1.1 known limitations (#973)
Interim merge note (spec trace workflow startup_failure since 22:45Z): docs-only change to the v1.1 release notes on release-1.1. go test (linux) and process-level tests (real binaries) passed on bc83e995; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body (base release-1.1 at a6304c21): both pass. Docs review ACCEPT on bc83e995 (accuracy and public text: no findings).
2026-12-02 20:05:19 -08:00
pingqiu-cpu a6304c2101 feat(geometry): new volumes up to 1 TiB (v1.1) (#757)
Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): branch updated to current main (69c5c6bd); go test (linux) and process-level tests (real binaries) passed on 69c5c6bd; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass (Model line now also cites FormatGate.Report for core/host/master/services.go, mapped since the PR was accepted). Code review ACCEPT on e1ed5073; the 1 TiB loaded first-cut measurement on current main passed on both volume formats.
2026-12-02 18:05:50 -08:00
pingqiu-cpu 53211a2d9d ops chunk verify: --timeout is a no-progress window; add --deadline (#966)
Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): go test (linux) and process-level tests (real binaries) passed on cc3a8a6c (run 46997615891); spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Code review ACCEPT 6161155789; model review ACCEPT 6161515202 (per-call read/trace follow-up recorded there).
2026-12-02 16:34:31 -08:00
pingqiu 25d640a084 merge main into recovery progress harness 2026-12-02 13:41:55 -08:00
Ping Qiu 9c56ca2e7e Merge pull request #962 from seaweedfs/fix/served-topology-issued
master: a clean move releases the static topology home
2026-12-02 12:46:06 -08:00
Ping Qiu 2da3e02cb9 Merge pull request #960 from seaweedfs/fix/fence-durable-slices
storage: fence slices bypass the page cache and are durable before they count
2026-12-02 12:38:07 -08:00
Ping Qiu 8145e4decf Merge pull request #959 from seaweedfs/feat/presync-until-short
storage: the pre-barrier sync repeats until its tail is bounded
2026-12-02 12:37:58 -08:00
pingqiuandClaude Opus 5.5 89923c1d0b Topology-only control: the home slot alone holds the volume before a move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:20:48 -08:00
pingqiuandClaude Opus 5.5 63116100fa A clean move also releases the old placement slot; lab-shaped test
A cluster-spec import homes a volume both as a placement and as a
topology slot, and a move rewrites neither: the placement branch now
also yields to a line a move minted on another host. The test moves a
volume homed both ways; a control checks the home before any move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:45:31 -08:00
pingqiuandClaude Opus 5.5 2fe1b06d1b Fence: O_DIRECT only on the store's own file; qualify the direct path
The O_DIRECT descriptor is used only when it is the same file as the
store's descriptor (os.SameFile); a replaced path is never written. The
tests qualify an aligned O_DIRECT write in their directory and fail on
Linux when it is refused, and the flush-fault test registers its cleanup
first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:38:31 -08:00
pingqiuandClaude Opus 5.5 6261612611 A clean move releases the static topology home
volumesServedBy counted a topology volume's home slot whenever its
replica matched the line, also after a move had minted the line on
another host. A moved line now counts only on its owner; the home slot
counts only for a line no move minted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:09:38 -08:00
pingqiuandClaude Opus 5.5 f3a8ef4335 storage: the cut's extent hold never stalls a guest write
A guest write waiting at the WAL hard mark holds the capture lock's read
side while it waits for the flusher, and the cut's hold stopped the
flusher until after the barrier took that lock: the write failed at its
admission budget. The barrier now only tries for its lock while the hold
is on (5 ms); at the hard mark, or when the try fails, it releases the
hold first and takes the lock normally, and the cut reports TailOverBound
with TailCause. Before the barrier a held extent write also goes through
while a writer waits at the hard mark.

The hold is now a read/write gate around each extent write and its
count: holdExtentWrites returns only after admitted writes have landed,
so the last pass's baseline misses none. A cut whose context ended in an
unheld pass returns before taking the hold.

Tests: two hard-mark reds and a failed-cut release test in bounded
children, a gate test, bounded writer joins, a deterministic unreachable
bound, and proof that a flusher cycle reached the held pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:56:52 -08:00
Ping Qiu f0719b64b4 Merge pull request #952 from seaweedfs/fix/finalize-idle-hosts
master: the format finalize blocks only on an old holder and lists the other hosts
2026-12-02 10:40:34 -08:00
pingqiuandClaude Opus 5.5 c525b5f40b storage: hold flusher extent writes over the last pre-barrier pass
TailBytes now runs from the start of the last pre-barrier pass to the
barrier lock, since the pause flushes all of that. A loaded cut right
after a fill, with the flusher draining, did not converge: a flusher
cycle landing in the last pass left the pause about 4 MiB to flush. The
last pass now runs with new flusher extent writes held until the barrier
is released (one pass and the pause; the cut needs the WAL only up to H),
so the pause flushes the guest's WAL tail alone. The flusher waits
before an extent write, holding no store lock, and stops waiting when it
is stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:05:47 -08:00
pingqiuandClaude Opus 5.5 eec017474f Fence slices bypass the page cache and are durable before they count
Each 1 MiB fence slice writes its aligned bytes O_DIRECT (Linux, where
the filesystem allows it) and is fdatasynced before it counts as
recovery progress, so a fence on a shared, capped disk no longer waits
behind other writers' page writeback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:31:47 -08:00
pingqiu 2b1129eba2 fix: require recovery exit evidence and keep Close off diagnostic output 2026-12-02 09:29:45 -08:00
pingqiuandClaude Opus 5.5 89a764dbdd List a held volume's stale report instead of blocking on it
A held volume whose process has been silent past the freshness window is
listed by the finalize (stale report); the grant and placement checks
still read the kept entry and refuse an old one. The restart test keeps a
sibling process at level 1 so the grant cannot borrow its report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:15:24 -08:00
pingqiuandClaude Opus 5.5 44edaa4f0e storage: the pre-barrier sync stops on the tail it leaves, bounded
The pre-barrier sync repeats until the store-file bytes dirtied during
its last pass (WAL appends and extent writes) are at most a named bound
(1 MiB), at most 6 passes and while the cut is live; past the last pass
the cut proceeds and reports the tail above the bound. LastCut reports
PreSyncRounds, TailBytes and TailOverBound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:12:38 -08:00
pingqiuandClaude Opus 5.5 a8ddae011f storage: the pre-barrier sync repeats until a round is short
The first loaded cut after a fill paid the fill's write-back in its one
pre-barrier sync, and what the guest wrote meanwhile became the pause's
own sync work, growing with the fill. The pre-barrier sync now repeats
while a round takes longer than 10 ms (above one device flush), at most
6 rounds and while the cut is live: the pause then flushes only about one
short round of writes, whatever the fill. Status reports the rounds
(LastCut.PreSyncRounds).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:57:27 -08:00
pingqiuandClaude Opus 5.5 23a20a92aa Pin the restart path the finalize leans on
A holder that restarts on an old binary adopts no line issued for its
dead process, and the re-issue for its new incarnation is refused at the
publication boundary (binary_too_old): the line keeps naming the dead
process. The control restarts on a binary that reads the level and gets
the line re-issued.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:54:44 -08:00
pingqiu ee6a8471bd fix: observe C3 recovery progress and graceful stop separately 2026-12-02 08:53:36 -08:00
pingqiuandClaude Opus 5.5 5cb92b7593 Cut the finalize down: block only on an old holder, list the other hosts
The finalize is refused only while a live report of a process holding a
volume reads below level 1. A held volume with no report, a host with no
report and an old process holding no volume are listed in the answer
(FinalizeFormatResponse.unconfirmed, and unconfirmed.<id> metadata on a
refusal) and in --json as listed; they do not block. The durable last
level and its marks are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:45:56 -08:00
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
pingqiu 7db6a75e65 Merge main into the finalize change 2026-12-02 08:27:11 -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 a56090ddcc master: the ordering control discriminates the keep lock; the fail-closed control proves ingest and log
Test-only review fixes. The ordering barrier now sits after the level is
settled and before the node store's own lock, so a keeper without the keep
lock fails it; every exit opens the barrier and joins the keepers. While
record writes fail, a heartbeat's new slot is shown ingested and the failure
logged. The v1.1 note says an idle host is judged by its last recorded level
after a master restart, until its next heartbeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:29:33 -08:00
pingqiu 3cf172045a Mark reachable intent consumption and list retirement in the ledger 2026-12-02 07:14:58 -08:00
pingqiuandClaude Opus 5.5 afea634234 lifecycle: a failed ReadsLevel write is repaired by the next one; no aliased levels
A write that fails after its rename can leave another level in the file
while the in-memory record keeps the old one; the store now marks the
record unsure, so the next write is never skipped as unchanged. RegisterNode
copies its input and its answer, so no caller shares the stored level. The
master's ordering control waits on an explicit barrier in the write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:07:44 -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
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 7fd40ec621 Bound intent decoding by the fixed candidate shard 2026-12-02 07:04:41 -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 eaf456d5e0 feat(chunkstore): resume delete intents and retire abandoned list pages 2026-12-02 07:03:41 -08:00
pingqiuandClaude Opus 5.5 df5f5dde77 master: keep a host's last read level in order and fail closed
Review fixes. The level is settled and written under one lock, so of two
heartbeats the later level is the one left on the node record. A failed
write refuses the heartbeat (the host sends it again) and marks the host,
which the finalize refuses until a later write succeeds. The node record's
level is deep-copied at the store's boundaries. Controls: 1-then-0 and
0-then-1 across expiry and restart, the held-write order, the failed write;
the issued-line fixture uses a workspace move, and the retire test reports
the volume its host holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:59:55 -08:00
pingqiuandClaude Opus 5.5 33041f5ec0 master: an idle host is judged by its last reported level, kept with its node record
An idle host (no placement, no lease) is judged by the level it last
reported, kept in memory and on its node record across restarts: 1 passes,
0 blocks, a host that never reported does not count. A re-registration at
start keeps the level. Hosts that hold work still need live reports per
volume. Two tests now expect the served volume's own diagnostic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:40:06 -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 fe0f02b68e master: the finalize judges per process and keeps every host that ever reported
Review fixes. A host that reported counts even after its reports leave the
freshness window (then, with no live report and no work, it is unknown and
refuses). Each volume a counted host serves needs its own live report at
the level, so one unreported process refuses, naming its volume; work held
only as an issued line counts the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:28:49 -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
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
pingqiuandClaude Opus 5.5 4fe9ba2478 master: the format finalize counts only hosts that hold work or have reported
With one process per volume, a registered spare host never reports, so the
finalize could only pass after retiring every spare host. It now counts
every host that holds a placement, a lease or an assignment, and every host
that has reported a read level; an idle host with neither does not block it.
If such a host later runs an old binary, the grant gate refuses it.

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