You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -630,7 +633,7 @@ class RaftActorLeaderSpec extends TestKit(ActorSystem()) with RaftActorSpecBase
630
633
} should contain theSameElementsAs (Set(follower1Index, follower2Index))
631
634
}
632
635
633
-
"reply ReplicationFailed to replicationActor if replication is in progress" in {
636
+
"reply ReplicationFailed to replicationActor and log warn message if replication is in progress" in {
634
637
valreplicationActor1=TestProbe()
635
638
valreplicationActor2=TestProbe()
636
639
valentityId1=NormalizedEntityId("test-1")
@@ -661,14 +664,19 @@ class RaftActorLeaderSpec extends TestKit(ActorSystem()) with RaftActorSpecBase
661
664
)
662
665
replicationActor2.expectNoMessage()
663
666
664
-
leader !Replicate(
665
-
event ="c",
666
-
replicationActor1.ref,
667
-
entityId1,
668
-
entityInstanceId,
669
-
originSender = system.deadLetters,
670
-
)
671
-
replicationActor1.expectMsg(ReplicationFailed)
667
+
LoggingTestKit
668
+
.warn(
669
+
"Failed to replicate the event (java.lang.String) since an uncommitted event exists for the entity (entityId: test-1). Replicating new events is allowed after the event is committed",
0 commit comments