Commit Graph
5037 Commits
Author SHA1 Message Date
pingqiu-cpu f5fea69cf7 docs: operations manual for v1.1.x standalone volumes (#974)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47118093690 succeeded (go test (linux), process-level tests (real binaries)) on head 47614211 against main 459059b9, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Docs review ACCEPT on 783166a2: removal runs only after a successful, empty unit query, SeaweedFS removal requires its unit to be inactive, and the multi-host guidance keeps mutual TLS and loopback guests.
- Independent first-time operator runs on earlier heads of this manual (Ubuntu 24.04 with an upgrade and a reboot, and AlmaLinux 9 with SELinux enforcing over iSCSI) completed with zero workarounds; the later commits fold in their documentation findings.
2026-12-03 05:58:46 -08:00
pingqiu-cpu e4d28bd134 fix: cluster check takes one status address per volume; a volume with a released lease reads stopped (#982)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47112416175 succeeded (go test (linux), process-level tests (real binaries)) on head 0732b880 against main bf878eca, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Code review ACCEPT on b6ed8e7c ('stopped' narrowed to a released lease; shell and registry tests pass); the head since then only merges main. Exact-head Linux run on d7d4155d: vet, -short and targeted -race all clean.
2026-12-03 05:37:14 -08:00
pingqiu-cpu 85d83237f4 fix(snapshot): omit the uncomputed chunk count from answers (#983)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47108982354 succeeded (go test (linux), process-level tests (real binaries)) on head d120a2c3 against main 20d58908, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Code review ACCEPT on 18f26292, no findings: the create/list answers drop the uncomputed chunk count without traversing manifests or rewriting receipts.
2026-12-03 05:06:39 -08:00
pingqiu-cpu 687cc31e32 fix(sw-block): volume commands say what they do; restore names an existing volume; a clean stop logs no cancelled closeout (#988)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47104755157 succeeded (go test (linux), process-level tests (real binaries)) on head 9cf90ee1 against main e7606462, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Code review ACCEPT on d9ec654e (light tier): CLI help, hints, stop text and exit-code items; the stop line now says only what the cut guarantees.
2026-12-03 04:46:04 -08:00
pingqiu-cpu 9b48f286d9 fix(deploy): volume units order after blockmaster without starting it; document the iSCSI port SELinux label (#989)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47101740814 succeeded (go test (linux), process-level tests (real binaries)) on head b894d640 against main 2d216e02, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Code review ACCEPT on b894d640 (light tier): blockvolume units order After the master without Wants, so a stopped master stays stopped; red test TestBlockvolumeUnitsOrderAfterTheMasterWithoutPullingItIn fails on the base.
2026-12-03 04:20:37 -08:00
pingqiu-cpu 87fe509c4d Normalize chunk CLI transport and snapshot-absence errors (#979)
Merge note (pull_request_target spec-trace workflow has a startup_failure on every branch since 2026-12-02 22:45Z, so its checks run locally):
- Test run 47093927493 succeeded (go test (linux), process-level tests (real binaries)) on head 9ea5ef4a against main f2bad6fb, the current main head.
- spec-trace-check.sh and public-text-check.sh, run with the main branch's scripts against this head and body: both exit 0.
- Code review ACCEPT on 9ea5ef4a (transport classifier sweep, caller cancel kept canceled, registry rows refreshed); runtime source ACCEPT earlier on 196693f3.
2026-12-03 03:39:48 -08:00
Ping Qiu 563d3ef35d ci: unit job cap 60 min, enough for a storage + durable PR (#978)
Interim merge note (spec trace workflow startup_failure since 22:45Z): CI configuration only (unit job cap 40 -> 60 min), released by the release lead after the run-time growth that motivated the earlier hold was fixed separately. go test (linux) and process-level tests (real binaries) passed on 6d4d8e61 against the current main head f41132c1; spec-trace-check.sh and public-text-check.sh run locally: both pass.
2026-12-03 03:04:21 -08:00
pingqiu-cpu 26a6361f6a fix: keep progressing manual cuts alive beyond the total timeout (#964)
Interim merge note (spec trace workflow startup_failure since 22:45Z): go test (linux) and process-level tests (real binaries) passed on 8f14f03a against the current main head 9533b51f; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Linux qualification at 7be2a259 (8f14f03a differs only in docs/time-bounds.tsv): vet clean, -short of the six touched packages pass, targeted -race -count=2 finds no race; matched-box runtime of chunkstore and durable below main. Code review ACCEPT carried to 7be2a259; model review FINAL ACCEPT (CutTime r8c).
2026-12-03 02:40:36 -08:00
pingqiu-cpu 02127e950e timebound: rows for the maintenance window change's bounds (#984)
Interim merge note (spec trace workflow startup_failure since 22:45Z): registry-only fix for main's red internal/timebound test (bounds that landed with the maintenance window change had no rows). go test (linux) and process-level tests (real binaries) passed on 98d25f29 against the current main head 911c2706; spec-trace-check.sh and public-text-check.sh run locally: both pass.
2026-12-03 02:02:30 -08:00
pingqiu-cpu 6f8f505fa8 sw-block, deploy: cluster check accepts a correct lifecycle setup; one writable store path (#980)
Interim merge note (spec trace workflow startup_failure since 22:45Z): go test (linux) and process-level tests (real binaries) passed on c27c47ea; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Linux qualification at c27c47ea: vet clean, -short of cmd/sw-block, core/host/master and core/ops pass, targeted -race finds no race. Code review ACCEPT on c27c47ea.
2026-12-03 01:05:59 -08:00
pingqiu-cpu 7cbfb8db61 docs, test: a registry of every fixed time bound in core/ and cmd/ (#970)
Interim merge note (spec trace workflow startup_failure since 22:45Z): go test (linux) and process-level tests (real binaries) passed on 7780e280; 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 (scanner and coverage rounds); model review ACCEPT on 7780e280 (row fixes and citations, rebased after the C7 fix).
2026-12-03 00:39:29 -08:00
pingqiu-cpu 91e6f4dfc4 Let progressing maintenance passes finish beyond one minute (#969)
Interim merge note (spec trace workflow startup_failure since 22:45Z): go test (linux) and process-level tests (real binaries) passed on 53d87521; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Linux qualification at 2def4a14 (53d87521 is its conflict-only rebase): vet clean, -short of the six touched packages pass, targeted -race -count=2 finds no race. Code review ACCEPT carried to 53d87521; model review PASS.
2026-12-03 00:24:37 -08:00
pingqiu-cpu 124e505964 Fix volume-delete list-page cleanup and report legacy residue (#976)
Interim merge note (spec trace workflow startup_failure since 22:45Z): go test (linux) and process-level tests (real binaries) passed on 8cf77831; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Linux qualification at 8cf77831: vet clean, -short of chunkstore and layout pass, targeted -race -count=2 finds no race. Code review ACCEPT (8cf77831) and model review PASS.
2026-12-02 23:52:06 -08:00
pingqiu-cpu 9d61cd13dd storage: read the COW window entry under its lock in a held-fill test (#975)
Interim merge note (spec trace workflow startup_failure since 22:45Z): test-only fix. go test (linux) and process-level tests (real binaries) passed on 274872a6; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts: both pass. Race evidence on a Linux host: go test -race -count=50 of TestCutCOWV3_HeldFillIsCancelledByAbortAndDrained reports one data race and a concurrent map fatal on main a6304c21, and none on 274872a6. Code review ACCEPT on 274872a6.
2026-12-02 22:13:24 -08:00
pingqiu-cpu 8c9358bca0 storage: the cut's pause metric ends at the barrier's Unlock (#972)
Interim merge note (spec trace workflow startup_failure since 22:45Z): metric-only change. go test (linux) and process-level tests (real binaries) passed on b197f5f7 (the first go test run died in an unrelated pre-existing test race in TestCutCOWV3_HeldFillIsCancelledByAbortAndDrained, fixed separately in #975; only the failed job was rerun); 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 reviews ACCEPT on b197f5f7 (two reviewers).
2026-12-02 20:53:59 -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-cpu bc617dd5ee test(c3): observe recovery progress on the final restore (#968)
Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): go test (linux) and process-level tests passed on 7ae34a7e; spec-trace-check.sh and public-text-check.sh run locally against this PR's body and diff on main af07f8be: both pass.
2026-12-02 15:41:21 -08:00
Ping Qiu af07f8be92 Merge pull request #958 from seaweedfs/fix/957-c3-progress-window
fix: observe C3 recovery progress and graceful stop separately
2026-12-02 14:05:35 -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 53d0b7182d Merge pull request #963 from seaweedfs/docs/model-code-trace-batch2
trace: map PageChain, StaleClean and the QueueCap busy wait to code
2026-12-02 12:40: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
pingqiu 116c0de507 test(volume): review recovery snapshot watchdog lock site 2026-12-02 12:30:53 -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 4e49a4e5e6 trace: LayoutStore reuse is StaleClean.Adopt, not Retake
Reuse of an existing object creates, re-stamps or clears the mark,
which is the model's Adopt action; Retake only resets adoption to retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:07:59 -08:00
pingqiuandClaude Opus 5.5 613b16be98 trace: map PageChain, StaleClean and the QueueCap busy wait to code
Add the file and action rows for PageChain (the snapshot-delete intent
chain and the generic list chain: write page, send, resend, consumer
read/apply/advance/resolve, sweep), StaleClean (the per-object cleaner
against a holder's re-take) and QueueCap's busy-wait path. Docs only;
no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:58:03 -08:00
Ping Qiu f7b99da650 Merge pull request #961 from seaweedfs/docs/model-code-trace-four-models
trace: map FormatGate, RecoveryProgress and the WALHold queue path to code
2026-12-02 11:54:01 -08:00
pingqiuandClaude Opus 5.5 260aeffda1 storage: #959 gate test joins both workers before the store closes
The cleanup keeps both worker handles in scope: it ends the admitted
write and releases the hold, then joins the hold worker and, if started,
the held extent-write worker, each bounded with a reported timeout, and
closes stop only after the joins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:52:26 -08:00
pingqiuandClaude Opus 5.5 6ee693c3c2 Replacement-path test: the store's own file is fenced (seeded bytes read back zero)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:50:04 -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 419f2b65b5 storage: #959 tests: contested arrival, a busy-barrier witness, a failed held sync
The gate test runs in a bounded child, sees each side reach the contested
boundary (the hold pending on the gate, the new extent write counted as
waiting) before asserting, and releases and joins on every exit. A new red
holds a capture reader without WAL pressure: the barrier must give the
hold up while that reader is still held and report barrier_busy. A new
control fails the held last pass's own sync (a test-only fault seam) and
requires that error, a released hold and extent draining again; the
cancellation control stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:43:00 -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 25d5c605d6 Retrigger checks for the corrected description (no change)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:26:13 -08:00
pingqiu 37fbb7ed04 ci: re-trigger 2026-12-02 11:18:22 -08:00
pingqiuandClaude Opus 5.5 e0be768983 volume: the /chunk/cut body mirrors the pre-barrier tail stats
PreSyncRounds, TailBytes, TailOverBound and TailCause join the cut body,
which mirrors the storage cut stats field for field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:16:59 -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
pingqiuandClaude Opus 5.5 f202bbe5c4 trace: map FormatGate, RecoveryProgress and the WALHold queue path to code
The model-code trace named only WALHold's fast path and SnapDelete.Send
of the models the next release projects. Add the file and action rows for
FormatGate (finalize, grant, heartbeat level, retire), RecoveryProgress
(fence and replay progress, the stall window) and the WALHold admission
queue (arrive, re-enter, resubmit). Docs only; no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:55:41 -08:00
pingqiuandClaude Opus 5.5 4dd0d23f3c Retrigger CI after the Actions outage (no change)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:50:22 -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 a6f01f4aff Status test: a healthy volume shows no binary_too_old; match by volume id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:01:51 -08:00
pingqiuandClaude Opus 5.5 8fe764c039 Show a holder refused by the format gate in the master's status
At format level 1 and above, each server holding a volume whose process
for it reads below the level gets a volume condition (reason
binary_too_old, with the server and its report level): its holder only
sees no assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:41:56 -08:00
pingqiuandClaude Opus 5.5 3fcd6d00b7 Retrigger CI (no change)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:33:52 -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
Ping Qiu 6e096b54b4 Merge pull request #874 from seaweedfs/feature/v3-snapshot-operations
V3: durable snapshot operation outcomes (red-first draft)
2026-12-02 09:27:19 -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