fix(runtime): #995 review — a repair of a degraded apply re-pushes the drivers whose nodes it creates
OpcUaPublishActor reported AddressSpaceRebuilt only after a real full rebuild, so the empty-plan repair of a degraded composition, the #977 R-4 whole-composition re-ensure, and the re-diff after a degraded non-rebuild all reported a clean non-rebuild. The degraded apply's own re-push had run while the node it failed to place was missing; the apply that finally created it skipped the node's driver (fingerprint unchanged), so the node stayed BadWaitingForInitialData until its value changed — forever for a constant. - The publish actor now reports AddressSpaceRebuilt=true when the apply ran a repair pass (either branch) or when the previous apply of any kind ended degraded (final outcome, completion + catalog included); DriverHostActor re-pushes the deploy's skipped drivers on it. A clean apply after the repair reports false again. - DriverLifecycle.md / rules note the widened signal. Tests: DriverHostActorDegradedRepairReseedTests (REAL publish actor: degraded add, degraded rebuild + empty-plan repair, degraded rebuild + R-4 repair; skip still works afterwards) and OpcUaPublishActorApplyOutcomeTests (outcome on both repair branches + after a degraded non-rebuild, with clean-no-op controls) — all six failed before the fix.
This commit is contained in:
@@ -267,6 +267,11 @@ Things to know before touching any of this:
|
||||
re-pushed when `RebuildCompleted.AddressSpaceRebuilt` (additive, default `true`) or `Degraded` says so, when the
|
||||
outcome times out, or when the apply throws. Boot/restore applies still push every child. Pinned by
|
||||
`DriverHostActorUnchangedResubscribeTests` (absence + mirror / VirtualTag / rebuild / degraded positive controls).
|
||||
The publish actor also reports `AddressSpaceRebuilt` for a **repair pass** (the empty-plan re-apply of a degraded
|
||||
composition, or the #977 R-4 whole-composition re-ensure) and for **any apply following a degraded one**: the
|
||||
degraded apply's re-push ran while the node it failed to place was missing, and the apply that finally creates it
|
||||
skips its driver (fingerprint unchanged) — without the re-push the node stayed `BadWaitingForInitialData` until its
|
||||
value changed, forever for a constant. Pinned against a real publish actor by `DriverHostActorDegradedRepairReseedTests`.
|
||||
⚠️ A NEW kind of value consumer (something that registers driver refs with the mux and needs a first value) must
|
||||
join `ConsumerRefs`, or its first deploy leaves it waiting for the next value change.
|
||||
- ⚠️ **A data re-subscribe must not touch the alarm feed (#662).** Every deploy's bulk push re-sends
|
||||
|
||||
Reference in New Issue
Block a user