Skip to content

Commit 4f70e14

Browse files
author
Taichi Yamakawa
committed
Merge remote-tracking branch 'origin/fix-LogReplicationDuringSnapshotSyncSpec' into use-akka-actor-testkit-typed-config-instead
2 parents d8334c8 + 7a7c67b commit 4f70e14

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/multi-jvm/scala/lerna/akka/entityreplication/typed/LogReplicationDuringSnapshotSyncSpec.scala

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)