fix(opcuaclient): #926 review r1 - loss after the signal withdraws known; gaps outside a bracket, overlapping starts, failed refreshes
- a sequence gap outside a bracket is a loss (re-refresh, same budget); older/repeated sequence numbers are ignored and not recorded - AlarmInitialStateEventArgs.Withdrawn (additive): the driver withdraws 'known' once per signalled episode on its first loss; DriverHostActor sends MarkConditionsKnown(Known:false) for those conditions, drops them from the backstop and re-arms F5 - a RefreshStart while a bracket is open is a loss (never erases the open bracket's) - a failed ConditionRefresh call is retried through the same bounded retry - retry generation token (a finished retry never clears a newer retry's pending flag) - spent budget renews after a 5-min cool-down; RefreshRequired sweeps coalesced Red/green per fix (7 mutations) + live opc-plc gate re-run.
This commit is contained in:
@@ -463,10 +463,17 @@ initialise (the AdminUI form drops them on the next save). Pinned by
|
||||
> - a delivered publish message skipped a sequence number. This catches the gap the SDK gives up on after a failed
|
||||
> republish, which the SDK reports nowhere else.
|
||||
>
|
||||
> A lossy bracket logs a Warning and re-runs ConditionRefresh on that subscription. At most 3 re-refreshes run per
|
||||
> episode, backing off 2 s, 4 s and 8 s, and a clean RefreshEnd resets the budget. When it is spent, nothing signals:
|
||||
> the conditions stay unknown (`Uncertain`) and the host's `ConditionKnownSignalTimeout` diagnostic reports them.
|
||||
> An overflow outside a bracket (lost live transitions) also requests a re-refresh. The alarm event item asks for a
|
||||
> A RefreshStart that arrives while a bracket is still open is a loss too.
|
||||
>
|
||||
> Any loss logs a Warning and re-runs ConditionRefresh on that subscription. That includes an overflow or sequence gap
|
||||
> outside a bracket, which can hold a lost live transition, and a failed ConditionRefresh call.
|
||||
>
|
||||
> - **Withdraw on a later loss:** a loss after the subscription signalled also **withdraws "known"**
|
||||
> (`AlarmInitialStateEventArgs.Withdrawn`). The host takes known back for those conditions (`Uncertain` on a
|
||||
> consumer), keeps them out of the backstop, and diagnoses them if no signal follows.
|
||||
> - **Retry bounds:** at most 3 re-refreshes run per episode, backing off 2 s, 4 s and 8 s. A clean RefreshEnd resets
|
||||
> the budget. Once the budget is spent, a further loss gets a new budget only after a 5-minute cool-down.
|
||||
> - **RefreshRequired:** its sweeps are coalesced while one is queued. The alarm event item asks for a
|
||||
> queue of 10,000 (previously 1,000); the server may revise it down. Counters on `otopcua.driver.opcuaclient.events`:
|
||||
> `alarm_event_queue_overflow` and `alarm_refresh_lossy`.
|
||||
> Last-told state survives a re-initialise (the host re-subscribes the same set over nodes it did not rebuild) and is
|
||||
|
||||
Reference in New Issue
Block a user