A move issue published the new epoch's lease view and then, in a
separate lease-lock section, replaced the deadline with issue + TTL. A
renewal of the new epoch landing between the two raised the deadline,
and the issue then lowered it under the outstanding grant, so later
renewals inside that grant were refused. The view and the initial
deadline are now published in one section, and the issue never lowers a
deadline.
A forced move now accepts any HEAD at an epoch below the expected one,
read after admission, with the lost range from that HEAD's RemoteLSN.
Requiring the HEAD generation and LSN recorded at the issue refused the
volume for good when an earlier holder's in-flight claim landed after
the next move was issued and that move's holder then died unclaimed. A
HEAD at the expected or a higher epoch that is not the expected holder's
is still refused; clean moves are unchanged.
Comments now say what admission guarantees: the expired holder starts
no new claim or cut, but a claim already sent may still land. The
paused-holder test witnesses the refused attach decision instead of
watching HEAD for a fixed time, and the design document and invariants
record the issue-to-lease transition, the forced HEAD rule and the open
model check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A move issue cleared the lease and the new holder's lease was created
only by its first renewal. A holder that died between its grant and its
first renewal left the volume with no lease, so no move was ever
admitted again, not even a forced one. A holder that died after renewing
but before claiming HEAD was stuck too: HEAD still named its predecessor
and the forced move refused it.
The issue write now starts the new holder's lease (horizon issue +
1.5*TTL, granted deadline issue + TTL, the same values a first grant
uses), so an unclaimed grant expires like any other lease and a forced
move is admitted after that lease's expiry plus the skew bound, never on
a predecessor's lease. The holder's first renewal is an ordinary renewal
of that lease, with no extra write.
A forced move also accepts a HEAD that still names the predecessor when
it is unchanged since the move to the expected holder was issued (same
generation and remote LSN, older epoch). Clean moves are unchanged.
Blockmaster reads HEAD for a forced move only after its lease admission
holds, so the HEAD the move and its lost range rest on can no longer be
changed by the expired holder. A holder resuming after the forced move
is refused at attach by its lease-gated projection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isTarget compares resolved addresses with netip (IPv6 zone included);
an address that does not parse never matches. A round whose bound ran
out while a later master was still being asked does not pass on an
earlier favourable answer. The ledger row maps to the M4 table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pass now needs a master listing exactly the configured filer (same
gRPC port, same or co-resolving host). Every master is asked: any
master listing another filer or several refuses at once, whichever
answers first. Each master call is bounded within the remaining time,
so a stalled master no longer consumes the whole bound. Startup census
only; invariant INV-WS-SINGLE-FILER-001 and its M6 row record it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh filer registers with its master some seconds after it serves
(14 s in the swap smoke), so "no filer listed" is asked again every
second until a 60 s bound and refused only then. Several filers are
still refused at once; an unreachable master is retried the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Block metadata needs exactly one filer behind --chunk-filer. At startup
the chunk wiring asks that filer for its masters and filer group
(filer_pb.SeaweedFiler/GetFilerConfiguration), then the masters for the
filers of that group (master_pb.Seaweed/ListClusterNodes). It refuses
unless a master lists exactly one, and when it cannot get that answer
within 15 s. The filer subset gains GetFilerConfiguration and a master
subset carries ListClusterNodes, generated with the committed plugin
versions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On platforms without SIGUSR1 a set --cpu-profile-dir is refused in flag
parsing; the default (off) stays common to all platforms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parseFlags refuses an unusable --cpu-profile-dir (and a platform without
SIGUSR1) before run() activates anything; the handler is installed at
the top of run(). stop removes the handler, stops and joins the signal
worker, then writes out a running profile, so a buffered SIGUSR1 cannot
start a profile after it. Tests decompress the whole profile and check
that no profile runs after stop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--cpu-profile-dir (default $SWBLOCK_CPU_PROFILE_DIR) names an existing
directory; SIGUSR1 then starts a CPU profile written there as
blockvolume-<pid>-<n>.pprof and the next SIGUSR1 stops it. Shutdown
writes out a running profile. Unset (the default), nothing is installed
and blockvolume is unchanged. No port is opened, so a harness can
profile any running volume with kill -USR1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>