#1109 follow-up: OPC UA value nodes keep the old driver's last Good across a respawn/restart until the new driver publishes — decide whether clients see a Bad gap #1112

Closed
opened 2026-12-04 22:43:18 -05:00 by dohertj2 · 2 comments
Owner

From the 2026-12-04 follow-up round 7 (#1107–#1109 fixed by parallel agents, merged on local master, unpushed).

Source: #1109 flake root cause (c28e5564d). #1070 drops a retired driver child's late ConnectivityChanged(false) once the replacement has connected. #1109 fixed this for dependents (VirtualTags / scripted alarms / Calculation) by having DriverHostActor tell the mux BadNoCommunication directly at stop/restart.

OPC UA value nodes still have the gap: on a config-change respawn or operator Restart, if the replacement connects before the old child's PostStop Bad arrives, clients keep seeing the old driver's last Good value until the new driver publishes — indefinitely for a publish-on-change source with an unchanged value.

Needs an owner decision: should OPC UA clients see a Bad (BadNoCommunication / BadWaitingForInitialData) gap on every driver respawn/restart? Stamping nodes Bad at stop time interacts with the comms-loss latch + recovery audit, and #1070's test currently expects no Bad stamp while the old child is blocked.

Also: state the contract ("dependents see non-Good across a driver-object change") in docs/DriverLifecycle.md so a future change can't silently break #1041's premise again, as #1070 did.

From the 2026-12-04 follow-up round 7 (#1107–#1109 fixed by parallel agents, merged on local master, unpushed). Source: #1109 flake root cause (`c28e5564d`). #1070 drops a retired driver child's late `ConnectivityChanged(false)` once the replacement has connected. #1109 fixed this for **dependents** (VirtualTags / scripted alarms / Calculation) by having DriverHostActor tell the mux BadNoCommunication directly at stop/restart. **OPC UA value nodes still have the gap:** on a config-change respawn or operator Restart, if the replacement connects before the old child's PostStop Bad arrives, clients keep seeing the old driver's last Good value until the new driver publishes — indefinitely for a publish-on-change source with an unchanged value. **Needs an owner decision:** should OPC UA clients see a Bad (BadNoCommunication / BadWaitingForInitialData) gap on every driver respawn/restart? Stamping nodes Bad at stop time interacts with the comms-loss latch + recovery audit, and #1070's test currently expects no Bad stamp while the old child is blocked. Also: state the contract ("dependents see non-Good across a driver-object change") in docs/DriverLifecycle.md so a future change can't silently break #1041's premise again, as #1070 did.
dohertj2 added the type:followuppriority:p2 labels 2026-12-04 22:43:18 -05:00
Author
Owner

Owner decision 2026-12-05: Brief Bad on restart — on a driver config-change respawn or operator Restart, the driver's OPC UA value nodes (raw + UNS mirrors) go BadWaitingForInitialData at stop/restart until the new driver's first publish (visible to ScadaBridge; accepted). In progress.

Owner decision 2026-12-05: **Brief Bad on restart** — on a driver config-change respawn or operator Restart, the driver's OPC UA value nodes (raw + UNS mirrors) go BadWaitingForInitialData at stop/restart until the new driver's first publish (visible to ScadaBridge; accepted). In progress.
Author
Owner

Pushed in da23fd970..961ca2897. Merge 47d1c93b8 (89aee3268, reviewed — no defects): value nodes (raw + UNS) go BadWaitingForInitialData on a config-change respawn / operator Restart until the new driver's first value. ScadaBridge-visible per owner decision. Residuals → #1113.

Pushed in `da23fd970..961ca2897`. Merge 47d1c93b8 (89aee3268, reviewed — no defects): value nodes (raw + UNS) go BadWaitingForInitialData on a config-change respawn / operator Restart until the new driver's first value. ScadaBridge-visible per owner decision. Residuals → #1113.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#1112