stash messages while Replicator is loading durable data, #22150

This commit is contained in:
Patrik Nordwall 2017-01-19 12:55:28 +01:00
parent d276a31c34
commit 572d0c8040
3 changed files with 74 additions and 44 deletions

View file

@ -137,11 +137,7 @@ abstract class DurableDataSpec(multiNodeConfig: DurableDataSpecConfig)
var r2: ActorRef = null
awaitAssert(r2 = newReplicator()) // try until name is free
// wait until all loaded
awaitAssert {
r2 ! GetKeyIds
expectMsgType[GetKeyIdsResult].keyIds should !==(Set.empty[String])
}
// note that it will stash the commands until loading completed
r2 ! Get(KeyA, ReadLocal)
expectMsgType[GetSuccess[GCounter]].dataValue.value.toInt should be(3)