The revocation ACK test records whether its worker was launched: every
exit still releases the held call, but only a launched worker is joined,
so a setup failure before the launch no longer waits 10 s for a sender
that does not exist or reports a join failure that did not happen.
The detach-freeze witness checks the held CAS's context deadline only
when the context carries one, and in every case that the CAS ended no
earlier than the cut deadline, so it also holds if the cut bounds the CAS
by a cancelling timer instead of a deadline.
Refs #300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts were only between the v2 removal and the sync policy from #286:
- wal_writer.go: stays deleted (no v3 code uses walWriter); #286's change there applied only to the v2 writer.
- walstore.go, legacy create/open constructors: stay deleted.
- walstore.go, openInitializedV3: keeps the v3 signature and the unconditional init, and takes #286's newDataFileSync for both the WAL and extent syncs.
The two plain f.Sync() calls that main has and this tree drops are in the legacy create constructor and the legacy superblock writer, both removed with v2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DetachFreeze now witnesses the held detach CAS itself: it was held, ran
under exactly the cut deadline, and was released by that deadline expiring
before the detach returned. The budget is checked from its one origin (the
settlement deadline a quarter of the bound after the cut deadline), not
against a start time sampled outside DetachVolume.
The revocation ACK test registers, before either worker launches, an
idempotent release and a join bounded on its own, so a blocked ACK that
used up the fixture context still releases and joins the held operation.
hangGuard keeps a tenth of the remaining budget (at most 30 s) before the
binary's deadline, also for short or nearly expired budgets, and an
expired budget gives an expired guard; unit-tested.
Refs #300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ACK in TestWorkspaceBindingRemoteReadDoesNotBlockAck ran under a
fixed 1 s deadline that also covered a durable persist, so a loaded host
could fail it with nothing blocked. It now runs under the test's own
context: the held remote call is released only after the ACK returns,
so an ACK that waited for it still fails at that deadline.
Refs #300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restore tests ran under a fixed 4-10 s test context; under load the
whole test outran it and a HEAD read or claim failed with a deadline.
They now use a hang guard derived from the test binary's own deadline.
The detach-freeze test held the next CAS, which a running chunk loop
could take instead of the detach, and gave the settlement 75 ms. It now
holds only the detach CAS, uses a 2 s freeze bound (the settlement keeps
500 ms), and checks the abort against the deadlines the detach traced:
the cut deadline at three quarters of the bound, the abort at or after
it, the return within the bound.
Refs #300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>