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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
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>
- 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>
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>
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>