make DNS actor work with RemoteActorRefProvider, #18650

* The configuration of the pool of the SimpleDnsManager
  is configured in deployment section "/IO-DNS/inet-address"
* We don't really support deployment configuration of system actors
  but here it's used and I don't think we can change that.
* It didn't work when using RemoteActorRefProvider/ClusterActorRefProvider,
  so I fixed it so that the behavior is consistent with the
  LocalActorRefProvider (verified by tests)
This commit is contained in:
Patrik Nordwall 2016-03-21 14:33:07 +01:00
parent b9d1fa74ba
commit fcd7561b2f
3 changed files with 101 additions and 45 deletions

View file

@ -263,9 +263,9 @@ private[akka] class RemoteActorRefProvider(
val lookup =
if (lookupDeploy)
elems.head match {
case "user" deployer.lookup(elems.drop(1))
case "remote" lookupRemotes(elems)
case _ None
case "user" | "system" deployer.lookup(elems.drop(1))
case "remote" lookupRemotes(elems)
case _ None
}
else None