fix(dcl): seeds never overwrite a newer live value; Good on reconnect resets only the subscribe backoff (DCL-1, SRT-6, WP3 tasks 3.1 + 3.8)
3.1: seed values are flagged on TagValueReceived; a reconnect/resolution re-seed for a tag that already delivered a live value in the current adapter generation is dropped, an initial-subscribe seed is replaced by the latest live value (a joining instance may have missed earlier live values). 3.8: the connection actor tells subscribers ConnectionQualityChanged(Good) on re-entering Connected; InstanceActor's Good branch only resets the Lever-1 backoff and no longer stamps bound attributes Good.
This commit is contained in:
+2
@@ -188,6 +188,8 @@ public class DataConnectionReconfigureTests : TestKit
|
||||
ExpectMsg<ConnectionQualityChanged>(TimeSpan.FromSeconds(5));
|
||||
|
||||
AwaitCondition(() => Subscribed(newAdapter), TimeSpan.FromSeconds(5));
|
||||
// Re-entering Connected tells the subscriber Good (SRT-6 restore signal).
|
||||
ExpectMsg<ConnectionQualityChanged>(m => m.Quality == QualityCode.Good, TimeSpan.FromSeconds(5));
|
||||
ExpectNoMsg(TimeSpan.FromMilliseconds(300));
|
||||
|
||||
oldCallback!("sensor/temp", new TagValue(999, QualityCode.Good, DateTimeOffset.UtcNow));
|
||||
|
||||
Reference in New Issue
Block a user