fix(runtime): #1113 pin that the gRPC origin hub never serves a stopped driver's last Good across a respawn/Restart

Item 1. Projected consumers (DataConnectionService read/subscribe) do not read
OPC UA node state; they read PartitionedSampleHub, fed by the driver callback
through SourceSamplePublisher. It is already covered by the producer fence:
StopChild / HandleRestartDriver call RetireCurrentDriver at the stop (sources
removed, cache released, readiness Invalidated) and the replacement's first
value binds a fresh generation. No product change; GrpcDataRespawnOriginGapTests
pins it end-to-end through DriverHostActor for both seams (Restart variant fails
with both fences removed). Docs: DriverLifecycle.md.
This commit is contained in:
Joseph Doherty
2026-12-05 03:01:51 -05:00
parent 961ca2897c
commit 5ef8089e1f
2 changed files with 172 additions and 0 deletions
+9
View File
@@ -642,6 +642,15 @@ supervision restart (same driver object — unchanged, still covered by that chi
disable (`RemovedInputStatus` + node removal). ScadaBridge sees a brief Bad per respawn/Restart — accepted.
Pinned by `DriverHostRespawnValueNodeGapTests` (both seams, both interleavings, no-latch with a positive control).
- **The gRPC data plane's origin side is covered by the producer fence, not by this stamp (#1113).** Projected consumers
(DataConnectionService read / subscribe) do not read the OPC UA node state: they read the `PartitionedSampleHub`, fed
by the driver callback through `SourceSamplePublisher`. `StopChild` / `HandleRestartDriver` call
`RetireCurrentDriver` at the stop, which removes every one of the driver's sources (cached sample released, readiness
`Invalidated`), and spawning the replacement registers a new incarnation (retiring the old fence a second time). Until the
replacement's first value binds a fresh generation there is no current source — a read answers `WaitingForInitialData`,
the old ticket reads not-ready — so the stopped object's last Good is never served there either. Pinned by
`GrpcDataRespawnOriginGapTests` (both seams).
### The connect path feeds the circuit breaker (R2-10 T10 closure)
`IDriver.InitializeAsync` is routed through the capability invoker as