OpcUaClient alarm RefreshEnd can signal 'state known' over lost refreshed events (queue overflow / gap) #926
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A1 (gRPC data alarm forwarding,
docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md§5.1) uses the OpcUaClient driver'sRefreshEndEventTypeas theInitialAlarmStateDeliveredsignal: after it, the conditions it covers are declared state-known.Residual risk: if refreshed events are lost,
RefreshEndstill signals, and a condition that is active upstream can be declared known-inactive.SequentialPublishingplus republish covers the ordinary case.QueueSize = 1000,DiscardOldest = false, with the source filter applied client-side (OpcUaClientDriver.cs~2577, ~2838). A refresh of more than 1,000 retained upstream conditions in one publish cycle can overflow the server queue and still deliverRefreshEnd. This is not verified against a server.Proposed mitigation:
RefreshStart…RefreshEndbracket.EventQueueOverflowEventTypeor aRefreshRequiredarrives inside the bracket, suppress the signal and re-run ConditionRefresh.Also: correct the plan's G2 sentence ("a sequence gap during a refresh ⇒ that RefreshEnd does not signal"). It is not implemented as written.
Fixed on master
4ac83085. RefreshEnd signals only for a lossless RefreshStart…RefreshEnd bracket (no overflow, RefreshRequired, nested start, or driver-tracked publish sequence gap); lossy ⇒ bounded re-ConditionRefresh; a post-signal loss withdraws 'known' (new AlarmInitialStateEventArgs.Withdrawn) until a clean bracket; deferred alarm/mark replay in arrival order. Queue 1000→10000. Plan G2 sentence corrected. Live overflow gate vs opc-plc: evidence docs/plans/evidence/grpc-data-ext/926-refresh-bracket.md.