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>