fix(grpc-data): #1080 a held connection's stale mark is timed from the hold start, not the loop unwind
The held runner's stale timer was created only after its loop had unwound, so under load the BadNoCommunication mark came a full stale timeout after a slow unwind - late, or skipped when the MaxHold release (timed from the hold) ended the hold first. The timer now starts with the hold; a mark due before the unwind waits for it (no late Good from that loop can follow the mark) and lands at the unwind. Tests (fake clock, ProjectedConditionAccess on ManualTimeProvider; the fixture can gate the runner's lease release to model a slow unwind): the mark lands at the unwind when it fell due earlier, still before MaxHold (failed before the fix: no mark, the release came first); and lands exactly at hold start + stale timeout with a prompt unwind.
This commit is contained in:
@@ -610,7 +610,10 @@ An origin streams its alarm condition state to a peer that negotiated `condition
|
||||
empty and the held conditions are removed. (Browse anchors still stay retained until a successful activation.)
|
||||
- An attempt that never completes is bounded. The held conditions go `BadNoCommunication` on the connection's stale
|
||||
timeout, as for any stream gap, and are removed past `ProjectedConditionOptions.MaxHold` (5 min, 2.5× the deploy apply
|
||||
deadline). Until then they stay charged to the host caps and diagnostics show the connection as `held`.
|
||||
deadline). Until then they stay charged to the host caps and diagnostics show the connection as `held`. Both clocks
|
||||
run from the start of the hold (#1080). The stale mark still waits for the held runner's loop to unwind, so no late
|
||||
Good from that loop can follow it. A mark that falls due before the unwind lands at the unwind. It used to be armed
|
||||
only at the unwind, so under load it came late, or the MaxHold release ended the hold first and it never came.
|
||||
- The runner that takes a held set over sends **RefreshRequired once** at its first barrier. While the set was held
|
||||
nothing imported was visible, so an event queued then was dropped and a ConditionRefresh replayed nothing. RefreshRequired
|
||||
is a Server-object event, not a condition event: EventIds are kept and no condition event is added.
|
||||
|
||||
Reference in New Issue
Block a user