ShardedDaemonSet creates one too many (#28766)
This commit is contained in:
parent
bcfdb896b0
commit
992e3624bb
2 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ private[akka] final class ShardedDaemonProcessImpl(system: ActorSystem[_])
|
||||||
|
|
||||||
// One shard per actor identified by the numeric id encoded in the entity id
|
// One shard per actor identified by the numeric id encoded in the entity id
|
||||||
val numberOfShards = numberOfInstances
|
val numberOfShards = numberOfInstances
|
||||||
val entityIds = (0 to numberOfInstances).map(_.toString)
|
val entityIds = (0 until numberOfInstances).map(_.toString)
|
||||||
|
|
||||||
val shardingSettings = {
|
val shardingSettings = {
|
||||||
val shardingBaseSettings =
|
val shardingBaseSettings =
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ class ShardedDaemonProcessSpec
|
||||||
|
|
||||||
val started = probe.receiveMessages(5)
|
val started = probe.receiveMessages(5)
|
||||||
started.toSet.size should ===(5)
|
started.toSet.size should ===(5)
|
||||||
|
probe.expectNoMessage()
|
||||||
}
|
}
|
||||||
|
|
||||||
"restart actors if they stop" in {
|
"restart actors if they stop" in {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue