Harden ReplicatorDeltaSpec, #25342
* It was a timing race condition in the test that was exposed by the change in PR #25315. Full state is now sent immediately when receiving the DeltaNack and that makes the Update complete much faster for that case than before. * That resulted in that the delta propagations from previous updates were still in the buffer to be sent out when the incr(4) was performed. Those deltas contained the NoDeltaPlaceholder, which caused the inrc(4) delta to also be folded into NoDeltaPlaceholder and thereby not propagated. * Before the DeltaNack the buffer had time to be flushed before the incr(4) and therefore no NoDeltaPlaceholder.
This commit is contained in:
parent
d76b27ba3e
commit
ebbdb6135e
2 changed files with 8 additions and 0 deletions
|
|
@ -847,6 +847,7 @@ object Replicator {
|
|||
override def zero: DeltaReplicatedData = this
|
||||
override def delta: Option[ReplicatedDelta] = None
|
||||
override def resetDelta: ReplicatedData = this
|
||||
override def toString: String = "NoDeltaPlaceholder"
|
||||
}
|
||||
}
|
||||
case object DeltaNack extends ReplicatorMessage with DeadLetterSuppression
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue