ShardedDaemonSet creates one too many (#28766)

This commit is contained in:
Christopher Batey 2020-03-19 11:58:58 +00:00 committed by GitHub
parent bcfdb896b0
commit 992e3624bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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
val numberOfShards = numberOfInstances
val entityIds = (0 to numberOfInstances).map(_.toString)
val entityIds = (0 until numberOfInstances).map(_.toString)
val shardingSettings = {
val shardingBaseSettings =

View file

@ -79,6 +79,7 @@ class ShardedDaemonProcessSpec
val started = probe.receiveMessages(5)
started.toSet.size should ===(5)
probe.expectNoMessage()
}
"restart actors if they stop" in {