Imported conditions: a permanently Unavailable/Denied mapping blocks removals for the whole connection indefinitely #933

Closed
opened 2026-11-25 00:08:28 -05:00 by dohertj2 · 1 comment
Owner

A4 review (docs/plans/evidence/grpc-data-ext/A4.md): ProjectedConditionAccess.Runner.cs holds conditions another mapping drops as BadNoCommunication while any mapping on the connection is unknown (unknown = states.Any(!Known)). This is T2-safe for a retry window, but since A4 keeps a Denied mapping in-stream (retried every 5–20 min) the state is durable: retired alarms linger stale indefinitely. Options: scope the unknown check to mappings whose placements could list the key, or time-box the hold and then remove with RefreshRequired. Add a troubleshooting row to docs/DataConnections.md.

A4 review (docs/plans/evidence/grpc-data-ext/A4.md): `ProjectedConditionAccess.Runner.cs` holds conditions another mapping drops as BadNoCommunication while any mapping on the connection is unknown (`unknown = states.Any(!Known)`). This is T2-safe for a retry window, but since A4 keeps a Denied mapping in-stream (retried every 5–20 min) the state is durable: retired alarms linger stale indefinitely. Options: scope the unknown check to mappings whose placements could list the key, or time-box the hold and then remove with RefreshRequired. Add a troubleshooting row to docs/DataConnections.md.
dohertj2 added the type:followuppriority:p2 labels 2026-11-25 00:08:28 -05:00
Author
Owner

Fixed on master (merge of fu-consumer-933). A key held only because a mapping on the connection is unknown is kept indefinitely while that mapping is only temporarily unknown (Pending/Unavailable/retrying — consistent with a connection whose stream never opens); once the mapping is DEFINITIVELY refused (Denied/NotFound/Unsupported/ConditionCapacity) its held keys are removed after MaxUnknownHold (20 min) via removal + RefreshRequired (never known-inactive). The hold clock runs only while a stream is past its barrier (pauses across outages). Scoping by root was rejected as unprovable (an origin deploy can move a condition under another root). Troubleshooting row in docs/DataConnections.md. Evidence: docs/plans/evidence/grpc-data-ext/A4.md "Follow-ups #933/#934/#936" + review round 1.

Fixed on master (merge of `fu-consumer-933`). A key held only because a mapping on the connection is unknown is kept indefinitely while that mapping is only temporarily unknown (Pending/Unavailable/retrying — consistent with a connection whose stream never opens); once the mapping is DEFINITIVELY refused (Denied/NotFound/Unsupported/ConditionCapacity) its held keys are removed after `MaxUnknownHold` (20 min) via removal + RefreshRequired (never known-inactive). The hold clock runs only while a stream is past its barrier (pauses across outages). Scoping by root was rejected as unprovable (an origin deploy can move a condition under another root). Troubleshooting row in docs/DataConnections.md. Evidence: docs/plans/evidence/grpc-data-ext/A4.md "Follow-ups #933/#934/#936" + review round 1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#933