INV-WS-REVOKE-ACK-RETRY-001 was inserted inside Part A's M4 table; it
now sits in Part B beside INV-WS-REVOKE-ACK-001, and M4 Fenced ->
Drained, Acked states the retry guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A real guard and the real master: the first ACK gets no answer, either
because its answer is lost after the master committed it, or because the
master's first HEAD read outlasts the guard's 5 s bound. The guard asks
again, its drain ends without error (exit 0, not 75), and the master
holds one ACK with the holder's identity, the stopped generation and the
HEAD position. On the parent commit (one attempt) both end with
DeadlineExceeded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The refusal is read once and named first, since it is also why the
durable backend refuses. invariants.md M1 Recovering -> Serving and the
Kubernetes failover diagram carry the primary's profile check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the durable backend wired as the status source (as blockvolume
does), status reports the backend's generic stale-primary reason, not the
profile mismatch naming both profiles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-WS-REVOKE-ACK-RETRY-001: asked again only after no answer
(DeadlineExceeded, Unavailable), within the lease deadline and the 19 s
closeout; the master answers a repeat of a recorded ACK as recorded while
the line is revoking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every assignment names blockmaster's ack profile; a primary of a
replicated line whose own --replication-ack is another one is not Healthy
(its status names both), so a lost primary that cannot answer
acknowledged under the master's profile. fencedDecision also holds on
the fencing round's own ProfileMismatch, the evidence it counts.
invariants.md: the M3 promotion-candidate row, the MATCH row's fencing
round, and the new INV-PRIMARY-ACK-PROFILE-001; the Kubernetes design
no longer says best_effort is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The survivors' answers cannot show the profile the lost primary
acknowledged under. Adds AssignmentFact.ack_profile (blockmaster's
profile) with tests: an assignment names the master's profile; a primary
of a replicated line in another profile (or under a master that names
none) does not serve and says why, while its own profile or an RF1 line
serves; and a fencing round answered in another profile publishes
nothing, on both gates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-PROMOTE-FRONTIER-BEST-EFFORT-001 now states the hold (it said the
gate promoted the highest-durable candidate) and names the renamed
product-loop test; INV-PROMOTE-ACK-PROFILE-MATCH-001 is new.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The volume answers each promotion probe with its own --replication-ack;
the probe round names every answer whose profile is missing or differs
from blockmaster's (or an unknown master profile), and both gates hold
such a volume before any fencing round (ack_profile_mismatch), as they
hold a best_effort one. One helper (automaticFailoverHold) decides both,
called before the unsupported gate reads its candidates, so a held volume
always shows why. blockmaster refuses an unknown --launcher-replication-ack.
The best_effort product-loop test now expects the hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An ACK call that got no answer (DeadlineExceeded, Unavailable) is made
again until the lease deadline; the master answers a repeat of a recorded
ACK as recorded, so a busy master no longer turns a clean stop into exit
75. The closeout wait becomes 19 s: the units' TimeoutStopSec=30s less
the 5 s drain, the 5 s exit wait and 1 s margin. blockmaster logs each
AckWorkspaceRevoked step's time (lock, HEAD read, recorded, answered).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A first ACK answered DeadlineExceeded or Unavailable (the master busy)
must be asked again, and the repeat's answer completes the stop with
status 0; a refused first ACK stays final (exit 75). A second test checks
the closeout fits the units' TimeoutStopSec with the drain and the exit
wait.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gate reads every frontier rule from blockmaster's
--launcher-replication-ack, but a volume runs its own --replication-ack.
Adds the wire field (ProbeAnswer.ack_profile) and the result fields, with
tests: both gates hold, without fencing, when an answer's profile is
missing or differs from the master's, or the master's is unknown; the
probe round names the mismatch; the volume answers its own profile;
blockmaster refuses an unknown --launcher-replication-ack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A best_effort volume promises no frontier on a survivor, so the
automatic promotion gate now holds it (blocked event
best_effort_no_automatic_failover) instead of fencing a successor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On both gates a best_effort volume whose primary is ineligible must get no
fencing round, keep its line and show best_effort_no_automatic_failover;
the same setup under sync-quorum fails over (the control). Red: today the
best_effort volume is fenced and failed over. The probe fake gains an ack
profile; the reason constant is added for the test to name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repository's public-text gate refuses a pull request that adds a line
naming the team runner label, and the separate process-level job added a
second runs-on line. It now runs as the 'process' entry of the existing
job's two-entry matrix (unit | process), under that job's unchanged
runs-on line; each step is gated on matrix.suite, and the job name and
timeout are templated so the two checks keep their names ('go test
(linux)', 'process-level tests (real binaries)') and bounds (40 / 90 min).
The old two-test step stays folded into the named list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
blockmaster logs "lock acquired" before it imports the cluster spec, which
creates each volume's layout on the filer, and serves only after that. A
harness that looks a volume up right after that line can find it not
serving yet (F1 with ten volumes: DeadlineExceeded waiting for the
connection). layoutID now retries an Unavailable or DeadlineExceeded
answer within 60 s; any other answer still fails at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under F1's load a write can be refused with a retryable status (namespace
not ready, Do Not Retry clear) when local admission waits past its bound;
the command is not acknowledged and the Linux host retries it. The load
writers now do the same through retryLikeHost: only a Do-Not-Retry-clear
status is retried, at most 5 times (nvme_core max_retries), and the round
fails once the retries are used up, as the host returns EIO then. A status
with Do Not Retry set, a transport error or a lost byte still fails at
once. Each round reports busy_refusals and max_consecutive_busy per volume.
F1_NVME_RETRIES=0 turns the retries off. Controls: five refusals then
success pass; six fail; retries off fails on the first refusal; Do Not
Retry set and transport errors fail at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
w4FreePortPair checked a pair free and weed bound it later; a pair inside
ip_local_port_range could be taken in between by any outgoing connection's
source port (seen: a filer's gRPC port 43775 inside a host's 43255-47350,
"bind: address already in use", with extra volumes adding connections).
handoffAddress already stays below that range for the same reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a54fcdde5ea81b1d23396c45ace385038288553a)
With the loop off, blockmaster refuses to start when its cluster spec
lists a replicated volume, and refuses to create one; a replicated volume
of another factor than --expected-slots-per-volume is refused likewise.
Only a static --topology is not checked at start. Each refusal is quoted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake ACK records that it was entered with a live context and the
deadline it carried; the test requires DeadlineExceeded, that deadline at
the 1 s lease deadline (before the 5 s ACK bound and the caller's), no
held lease afterwards and no completed ACK. A pre-dispatch error and an
ACK bounded by the parent context alone each fail it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The read-failure case now runs on a deleting and on a deleted HEAD, and
also checks the fake filer's update and delete counters: the failed
re-run releases no source and deletes no object.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A revoking lease valid for 1 s and a master answering after 3 s: the ACK
call is cancelled at the lease deadline (about 1 s), not at the 5 s ACK
bound, and nothing is reported acknowledged; an ACK bound by the parent
context alone fails it. The invariants note now names the 6 s closeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A root whose read fails with an ordinary error (not missing, not corrupt)
on a deleting HEAD makes the re-run return that error, skip nothing and
leave HEAD unchanged; the fake filer gains a failLookup hook (test only).
Skipping every error on a deleting HEAD fails it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The holder gave its revocation ACK call 2 s and the closeout 3 s, while the
master's handler spends up to 2 s on its bounded HEAD read and then writes
the ACK and reconciles the bindings (about 0.3 s, measured), behind its
workspace lock. A slow but successful ACK could fail at the holder (exit
75), also after the master recorded it.
WorkspaceAckTimeout (5 s, about 2.7 s above the master's measured steps,
stated in its comment) bounds the ACK call, still within the lease
deadline; the post-drain closeout is that plus 1 s. Constants only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BCatalog.DeleteVolume finds the volumes to release by reading every root
the volume's HEAD names (foreignOwners). A deleted HEAD still names its
roots, whose objects the first run deleted, so the documented re-run ("a
re-run on a deleted volume sweeps any object that landed late") failed
with "layout: object missing"; so did the re-run of a delete interrupted
after it began deleting objects.
layout.DeleteVolume deletes a volume's objects only after it released the
volume from every source, so on a deleting or deleted HEAD a root whose
objects are gone has nothing left to release. foreignOwners now skips
exactly that: layout.ErrMissing on a deleting or deleted HEAD. A corrupt
object, an I/O error, and a missing root of a live HEAD stay errors. The
skipped roots are returned, and volume-delete reports them
(already_deleted_roots).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-AUTH-ONE-REPLICATED-FACTOR-001's limits: only a static --topology file
with a mismatched volume goes unchecked at start; a cluster spec is checked
(INV-AUTH-REPLICATED-SPEC-NEEDS-LOOP-001).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>