Commit Graph
4842 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 a2419b2cec ci: judge tmpfs by filesystem type; an lsblk error voids its output
A tmpfs mounted under another source name (shm, a custom label) was
refused because the check compared the source name. And an lsblk that
printed an NVMe disk and then failed was accepted, since its status was
discarded. The check now reads the filesystem type from df and treats any
lsblk failure as "not a block device". Two stub cases pin both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:53:34 -08:00
Ping Qiu 8ee5abbe53 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 22:52:19 -08:00
Ping Qiu 5085b13695 Merge branch 'main' into fix/record-commit-needs-hash 2026-12-01 22:51:17 -08:00
Ping Qiu 512c0e1db6 Merge branch 'main' into fix/nvme-busy-write-diagnostics 2026-12-01 22:51:13 -08:00
pingqiuandClaude Opus 5.5 4ec8ec06e6 ci: stop a self-hosted job whose work or temp dir is not on NVMe
One runner box kept its runners' work, temp and Go cache directories on
its SATA system disk (the default install puts _work under the runner
directory in /home). Under the process-level tests' fsync load that disk
saturated and jobs timed out, which read as test failures.

The first step of the test and known-bugs jobs on a self-hosted runner now
checks that every disk behind the workspace, RUNNER_TEMP, TMPDIR and GOCACHE
is NVMe (tmpfs accepted) and fails naming the runner and the directory
otherwise. GitHub-hosted runners skip the step. The script's test stubs df
and lsblk: NVMe, tmpfs, a not-yet-created dir pass; SATA, an array with a
SATA member and a network share fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:45:32 -08:00
pingqiu c284f788a3 test: witness provider cancellation before target close returns 2026-12-01 22:35:07 -08:00
pingqiu d5da9b1dd1 Merge remote-tracking branch 'origin/main' into feat/v11-declare-format 2026-12-01 22:29:28 -08:00
Ping Qiu 7f8367c495 Merge pull request #913 from seaweedfs/feat/format-gate-master
master: cluster format level (FORMAT-GATE): finalize-format, level-0 v1.0 semantics, retire-host
2026-12-01 22:28:14 -08:00
pingqiuandClaude Opus 5.5 9a4078e17a storage: the v1.1 format follows the assigned level, not a build tag
A chunk layer decides its format once at attach from its config's
FormatLevel and the store's marker: level 1 upgrades a v1.0 store; level
0 keeps it on v1.0; a store already on v1.1 at level 0 is served over a
version-1 HEAD (reported as format_level_behind_volume) and refused over
a version-0 HEAD (format_level_behind_store). The layout remote's HEAD
format follows its layer (SetHeadFormatV11) and reports the version it
read (HeadV11). Every production attach is level 0 until the assignment
carries the master's level, so a release build keeps writing v1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:27:16 -08:00
Ping Qiu 2f602b6a11 Merge pull request #930 from seaweedfs/test/f1-port-retry
test: F1's holder ports are drawn below the ephemeral range, and a start that lost its port is retried once (#927)
2026-12-01 22:17:18 -08:00
pingqiu 5b92cde89e ci: run tests at ready 2026-12-01 22:16:39 -08:00
pingqiu 64b36ffa50 fix(nvme): cancel connection readiness waits when target closes 2026-12-01 22:13:03 -08:00
pingqiuandClaude Opus 5.5 2d2327e8e8 durable: test, every store read on the busy path is bounded
The no-flush busy path observes the store only through a bounded
snapshot: the checkpoint at the busy write, the target, the retry log
and the timeout diagnostic, which reports the last observation (or
"unavailable") instead of a fresh read. The busy-path check is a
function the burst test calls, so a control drives it with the store
lock held across the deadline at each observation, and released early.
The wait's control gains an early-release case that must return the
advanced checkpoint, a lower bound for the held case, and joins every
fake read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:05:37 -08:00
Ping Qiu 40d6cb45e5 Merge pull request #928 from seaweedfs/ci/c3-nongating
ci: run C3 non-gating on shared runners until #905 is fixed
2026-12-01 22:04:31 -08:00
pingqiuandClaude Opus 5.5 4753c7ed20 storage: guard that v1.1 extent writes never land an absent chunk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:56:14 -08:00
pingqiuandClaude Opus 5.5 81600716ca durable: test, the passive checkpoint wait is bounded by its deadline
The passive wait's checkpoint read takes the store's read lock, which a
checkpoint publication holds across its descriptor I/O; a stall there kept
the loop from rechecking the write's retry deadline. The wait is now
passiveCheckpointWait, with every read through boundedRead (a read still
blocked at the deadline ends the wait, reported as blocked), and no read is
started after the deadline.

TestPassiveCheckpointWaitIsBoundedByItsDeadline: a read blocked behind a
held lock, and a checkpoint that never advances, each with the flusher
always in a cycle, end at the 300 ms deadline; with the read unbounded the
first case hangs until the test's timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:55:45 -08:00
pingqiuandClaude Opus 5.5 dccff2f073 test: F1 retries only an exact listener-bind EADDRINUSE on the attempt's own drawn address, and keeps the first attempt's log (#927 review)
P1: f1WaitAdopted took any log line containing "address already in use"
as a taken port. It now passes the attempt's four drawn addresses to
bindTakenOn, which accepts only Go's listener error ending a line,
"listen tcp <addr>: bind: address already in use", with <addr> one of
them; a different port or host, a dial, a quoted copy, text after it, udp
or the bare words are not a taken port, so the start fails as before.

P2: the retry starts as blockvolume-<key>-attempt2, so the first attempt's
log is not truncated, and startWithBindRetry returns the first attempt's
error, which the test logs (address and log path) before the retry's
answer.

Red: TestBindTakenOnOnlyThisAttemptsListener fails with the previous
substring rule; TestStartWithBindRetry checks attempt numbers and the
kept first error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:50:37 -08:00
pingqiuandClaude Opus 5.5 f8b3b85989 storage: the record's Commit needs a hash it holds
On a v1.0 shadow a cut can capture a written absent chunk while its
absence stands (no Hash), and the flusher can then complete the chunk's
local bits (P to U, no version change) before the publish. The publish's
Commit met U and the kernel refused it. Commit is now sent only when the
record holds the chunk's hash (HU or HP); the chunk stays a candidate.

Fixes #922.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:25 -08:00
pingqiuandClaude Opus 5.5 de43d48be4 test: a holder's harness-chosen port is drawn below the host's ephemeral range, and a start that lost its port is retried once (#927)
handoffAddress drew from [10000, 20000) whatever the host's ephemeral range;
it now cuts the range at the host's ip_local_port_range low end
(handoffRange), as the weed port pairs already do. F1's holder start
(f1Up) answers errBindTaken when the holder exits before adopting with
"address already in use"; startWithBindRetry then draws the holder's four
ports again and starts it once more (v1, whose ports the cluster spec
names, is not retried). Any other failure, or a second taken port, fails
the test as before.

Red first: TestHandoffRangeStaysBelowTheEphemeralRange (a host whose
ephemeral range starts at 15000 must get [10000, 15000)) and
TestStartWithBindRetry (a taken port, then ok: one retry with fresh
ports) fail with the previous behaviour and pass here.

Refs #927.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:42:59 -08:00
Ping Qiu 437c11129c Merge branch 'main' into fix/nvme-busy-write-diagnostics 2026-12-01 21:35:25 -08:00
pingqiuandClaude Opus 5.5 7c5a0ae8c4 ci: run C3 non-gating on shared runners until #905 is fixed
The first write after the holder reports its frontend ready can still be
answered namespace-not-ready for longer than a host retries (measured
18 s with retries on a shared runner). That is a product finding tracked
in #905 and a v1.1 release gate; the test keeps running and reporting on
every job, and the fix removes this marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:32:31 -08:00
Ping Qiu 9f5b8ad37e Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 21:32:01 -08:00
Ping Qiu 0022052d54 Merge pull request #910 from seaweedfs/feat/o1-upgrade-pass
storage: the attach runs the upgrade compare pass; sealing requests wait for it
2026-12-01 21:31:51 -08:00
pingqiuandClaude Opus 5.5 49f7d3fe29 format gate tests: comments say what each test does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:11:01 -08:00
pingqiu f459e5c208 test: require an existing kernel namespace block device 2026-12-01 20:53:22 -08:00
pingqiu 92658eccdb ci: keep recorder errors separate from the Go test verdict 2026-12-01 20:49:27 -08:00
pingqiu 73c99f5a05 test: prove owned kernel controller teardown after retry procedure 2026-12-01 20:48:22 -08:00
pingqiuandClaude Opus 5.5 6d24db415c format gate test: the held publication admission is released and joined on cleanup
A failure before the release no longer strands Publisher.Run: a cleanup,
run before the master's close, releases the hold and joins the admission's
return within 10 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:43:30 -08:00
Ping Qiu 574f1b056d Merge pull request #923 from seaweedfs/test/hostlimit-handoff-first-turn
hostlimit: test, a skip is allowed on each worker's first turn only
2026-12-01 20:38:46 -08:00
pingqiuandClaude Opus 5.5 4192cc58f7 format gate: every reported volume keeps its level; a held ask is judged at its release
A heartbeat may report several volumes: each gets its read level, not
only the first. A test seam on the publication admission holds a real
admitted bind while a downgrade is reported; released, the same ask is
refused by the format check. The layout-ready guard names the admission's
new inner function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:38:03 -08:00
pingqiu 458f64dda9 ci: resolve evidence directory only after runner allocation 2026-12-01 20:36:42 -08:00
pingqiuandClaude Opus 5.5 3fdc17e3e7 ci: retain timed test events and whole-job load on failure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:33:20 -08:00
pingqiu f76609cb4f test: hold non-negotiating NVMe write through attach readiness 2026-12-01 20:33:06 -08:00
Ping Qiu dee857b2f3 Merge pull request #915 from seaweedfs/ci/process-level-artifacts
ci: keep the process-level logs and shard results when a run fails
2026-12-01 20:32:30 -08:00
pingqiu-cpu 2ffeb31b2f Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 20:28:46 -08:00
pingqiuandClaude Opus 5.5 a4c4e83e62 layout: every version-1 HEAD write stamps unstamped snapshots
runTransition stamps each snapshot without a publishing generation with
the write's generation whenever the result is a version-1 HEAD, and a
write check refuses a version-1 HEAD with an unstamped snapshot. Reads
stay tolerant. A v1.1 commit's new snapshot and an upgraded volume's
legacy snapshots can now be deleted by their captured target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:25:01 -08:00
pingqiuandClaude Opus 5.5 da217ed376 storage: the pause accounting is the capture's own
resolveTouchFilled and the touched set's allocation also run on readers
(status, pre-copy, the shadow: peekTouched) without the capture lock; they
counted into the capture's paused/pauseOps whenever a cut happened to be
paused, a data race and a misattribution. They count only on the capturing
goroutine now (byCapture); readers never touch those fields.

TestAReaderBesideCutsAndRecoveriesIsNotChargedToThePause runs a reader
beside cuts and recoveries (one just before the barrier); under -race it
reports 2 data races on the previous code and none now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:23:01 -08:00
pingqiuandClaude Opus 5.5 7cb93af9ec format gate: a silent process keeps its level while its volume is served
Read levels are kept per (server, volume): a server runs one process per
volume, so a later report for the volume is its process restarted or
replaced. A silent process's entry stays while the server still serves
its volume (a placement, a live line); it leaves only on a retire, when
the volume is no longer served and the process has been silent past the
freshness window, or on a newer report for the same volume. The
publication-boundary test calls the admission directly with a recording
publish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:19:53 -08:00
pingqiu 1b9dbbaea3 feat: negotiate NVMe command retry delays for transient readiness 2026-12-01 20:15:19 -08:00
pingqiuandClaude Opus 5.5 444562db12 hostlimit: test, the hand-off bound must check at least one later turn
Fail if no hand-off went to a worker's later admission: the skip-window
bound applies only to those, so without one the test would pass checking
nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:14:11 -08:00
pingqiuandClaude Opus 5.5 1add3afcd0 storage: the barrier only swaps the touched sets; a late recovery is a flag
- prepareTouched, before the barrier and outside the pause, runs the
  once-per-layer seed, a pending recovery's clean-fill touches, and makes
  the cleared spare set; takeTouched at the barrier is a pointer swap.
- A recovery that lands between prepareTouched and the barrier is taken
  at the barrier as a flag (O(1)): the window covers every chunk until it
  narrows, and the clean fills are judged after the pause, with the
  touched set's members. A refusal before the judgement keeps the request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:13:14 -08:00
pingqiuandClaude Opus 5.5 a74c46b302 hostlimit: test, a skip is allowed on each worker's first turn only
TestOneStalledTicketCostsOneSkipNotEveryHandoff failed under load with
gaps [581ms 11ms 4ms 8ms 11ms 4ms]: each worker (its own limiter) judges
the stalled ticket on its own clock, which runs only while the slot is
free, so a worker whose clock started late pays its one skip on its first
turn. The skip-window bound now applies to a worker's later admissions
only (paying the skip again); the failure prints each gap with its worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:11:53 -08:00
pingqiuandClaude Opus 5.5 d8f828275a storage: red tests, no touched-set allocation or fill scan in the pause
- The touched set's allocation and the recovery's clean-fill enumeration
  now count themselves in PauseCandidateOps when the guest is paused.
- TestAColdFirstCutAllocatesNoSetInThePause: a layer's first cut at the
  1 TiB shape (fails: 4,097, the spare set allocated at the take).
- TestARecoveryJustBeforeTheBarrierIsJudgedAfterThePause: a recovery
  between the pre-barrier work and the barrier (fails: 9, the clean fills
  enumerated at the take); the cut must still judge every clean fill.
- TestTheFirstCutAfterWritesDoesNoPerCandidateWorkInThePause now fails
  too (the spare allocation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:06:08 -08:00
Ping Qiu 664a31451d Merge pull request #921 from seaweedfs/test/nongating-preview-fencing
ci: non-gating named tests (with an issue); the replicated preview's fencing round runs and reports without gating (#920)
2026-12-01 20:03:50 -08:00
pingqiuandClaude Opus 5.5 fadc4f0345 format gate: per-process read levels, the publication boundary checks them, the clamped grant stays monotonic
A server's per-volume processes may run different binaries: the read
level is kept per process (its heartbeat slot's incarnation) and a server
reads the lowest any of its processes reported within the freshness
window. A heartbeat is judged on its own process's level.

The final publication boundary and the promotion gate check the target
server's current level, so an ask decided before an old process reported
is not published.

A level-0 grant clamped to the horizon is now + the time left to it, so
the deadline (read by the level-1 barrier after a finalize) keeps the
monotonic reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:01:10 -08:00
pingqiuandClaude Opus 5.5 72e429830c storage: the guest pause does O(1) work; the candidates are judged after it
In the pause, a cut now syncs (H), takes the touched set and the dirty set
by pointer swaps, and opens the copy window over what they name (a
superset of the candidates, a lookup per chunk). Everything per candidate
runs after the pause, under the window: the judgement (WAL entries up to
H), the known-equal filter, each candidate's version, staged reuse, the
record shadow check, the base refs, the copy-order hint and the
HEAD-behind refusal. The window then narrows to the candidates.

- A candidate's version at the barrier is read atomically with the write
  path: the version a guest write's save recorded with its bytes, else the
  live one under the window lock. The window closes on a chunk only after
  its version is read and it is uploaded.
- A refusal before the judgement returns the taken sets (touched again,
  the dirty set rejoins l.dirty). After it, the existing requeue does.
- A pre-copy attempt keeps its drained frontend drained through the
  judgement and decides its freeze on the judged tail, as before: its guest
  pause runs to that release.
- The record shadow check exempts chunks written since the barrier (the
  live touched set): the record already counts those writes.
- PauseCandidateOps counts per-candidate operations while the guest is
  paused; it is 0 for an ordinary cut. The cut body and the status schema
  carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:58:17 -08:00
Ping Qiu 57445f3340 Merge pull request #919 from seaweedfs/test/nvme-initiator-host-retries
test: retry transient NVMe completions within host budget
2026-12-01 19:50:25 -08:00
pingqiuandClaude Opus 5.5 4f3c28fde4 storage: bound the partial-cursor test's Close join
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:46:23 -08:00
pingqiu 30bbbbc46d Merge remote-tracking branch 'origin/main' into feat/o1-upgrade-pass 2026-12-01 19:45:13 -08:00
pingqiuandClaude Opus 5.5 08562e28d4 storage: pass stop tests let the stop, not a release, free the held compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:40:50 -08:00