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:
@@ -1476,6 +1476,8 @@ public class DataConnectionActorTests : TestKit
|
||||
AwaitCondition(() =>
|
||||
backupAdapter.ReceivedCalls().Any(c => c.GetMethodInfo().Name == "SubscribeAsync"),
|
||||
TimeSpan.FromSeconds(5));
|
||||
// Re-entering Connected on the backup tells the subscriber Good (SRT-6 restore signal).
|
||||
ExpectMsg<ConnectionQualityChanged>(m => m.Quality == QualityCode.Good, TimeSpan.FromSeconds(5));
|
||||
await Task.Delay(300); // actor is Connected on backup
|
||||
|
||||
// Drain any value updates produced by the re-subscribe path.
|
||||
|
||||
Reference in New Issue
Block a user