Re-use logic for allocating shard home for remembered entities

This commit is contained in:
Johan Andrén 2020-06-11 15:46:03 +02:00
parent d2dd80fe17
commit 9c7f16a4db

View file

@ -1422,7 +1422,7 @@ private[akka] class DDataShardCoordinator(
if (shardIds.nonEmpty) {
val newUnallocatedShards = state.unallocatedShards.union(shardIds.diff(state.shards.keySet))
state = state.copy(unallocatedShards = newUnallocatedShards)
newUnallocatedShards.foreach { self ! GetShardHome(_) }
allocateShardHomesForRememberEntities()
}
timers.cancel(RememberEntitiesTimeoutKey)