From 795ad6ccc779ebf03b8438c9a5a14fd2e3148516 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 24 Nov 2026 10:47:49 -0500 Subject: [PATCH] =?UTF-8?q?fix(grpc-data):=20A1=20review=20S2=20=E2=80=94?= =?UTF-8?q?=20only=20a=20retired=20child's=20Bad=20edge=20withdraws=20know?= =?UTF-8?q?n;=20a=20stray=20sender=20changes=20nothing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drivers/DriverHostActor.ConditionSignals.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/Drivers/DriverHostActor.ConditionSignals.cs b/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/Drivers/DriverHostActor.ConditionSignals.cs index a0b010f95..4de53675f 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/Drivers/DriverHostActor.ConditionSignals.cs +++ b/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/Drivers/DriverHostActor.ConditionSignals.cs @@ -88,8 +88,10 @@ public sealed partial class DriverHostActor { if (!IsCurrentChild(driverInstanceId, sender)) { - // A stopped incarnation (or a stray sender): never recreate or reset the tracker. Its Bad edge still - // withdraws known unless the CURRENT child of the same id is connected (its state is the live one). + // A stopped incarnation (or a stray sender): never recreate or reset the tracker. A stopped incarnation's + // Bad edge still withdraws known unless the CURRENT child of the same id is connected (its state is the + // live one); a sender that was never a child of this host changes nothing. + if (!_retiredChildren.Contains(sender)) return; var currentConnected = _conditionSignalTrackers.TryGetValue(driverInstanceId, out var live) && live.GoodSinceUtc is not null && _children.TryGetValue(driverInstanceId, out var current) && Equals(live.Owner, current.Actor); if (!connected && !currentConnected) WithdrawDriverConditionsKnown(driverInstanceId);