@@ -47,11 +47,7 @@ object LogReplicationDuringSnapshotSyncSpecConfig extends MultiNodeConfig {
4747 raft-actor-auto-start.number-of-actors = 1
4848
4949 sharding {
50- // Sharding will be available as possible quick.
51- retry-interval = 500ms
52- waiting-for-state-timeout = 500ms
53- updating-state-timeout = 500ms
54-
50+ // drop old messages actively
5551 buffer-size = 50
5652 }
5753 compaction {
@@ -63,8 +59,16 @@ object LogReplicationDuringSnapshotSyncSpecConfig extends MultiNodeConfig {
6359 // This spec requires longer timeouts
6460 akka.actor.testkit.typed.filter-leeway = 30s
6561 akka.testconductor.barrier-timeout = 5m
66- // This spec don't use the eventsourced feature
67- lerna.akka.entityreplication.raft.eventsourced.commit-log-store.retry.attempts = 0
62+
63+ akka.cluster.sharding {
64+ // Sharding will be available as possible quick.
65+ retry-interval = 500ms
66+ waiting-for-state-timeout = 500ms
67+ updating-state-timeout = 500ms
68+ distributed-data.majority-min-cap = 2
69+ coordinator-state.write-majority-plus = 0
70+ coordinator-state.read-majority-plus = 0
71+ }
6872 """
6973 }
7074
@@ -202,7 +206,7 @@ class LogReplicationDuringSnapshotSyncSpec
202206 " LogReplicationDuringSnapshotSyncSpec" should {
203207
204208 " elect node1 as a leader" in {
205- newCluster(controller, node1, node2, node3)
209+ newCluster(node1, node2, node3)
206210 runOn(node1) {
207211 expectNewLeaderElected {
208212 clusterReplication.init(Register (typedSystem))
0 commit comments