-
- Downloads
[SPARK-7995][SPARK-6280][CORE] Remove AkkaRpcEnv and remove systemName from setupEndpointRef
### Remove AkkaRpcEnv Keep `SparkEnv.actorSystem` because Streaming still uses it. Will remove it and AkkaUtils after refactoring Streaming actorStream API. ### Remove systemName There are 2 places using `systemName`: * `RpcEnvConfig.name`. Actually, although it's used as `systemName` in `AkkaRpcEnv`, `NettyRpcEnv` uses it as the service name to output the log `Successfully started service *** on port ***`. Since the service name in log is useful, I keep `RpcEnvConfig.name`. * `def setupEndpointRef(systemName: String, address: RpcAddress, endpointName: String)`. Each `ActorSystem` has a `systemName`. Akka requires `systemName` in its URI and will refuse a connection if `systemName` is not matched. However, `NettyRpcEnv` doesn't use it. So we can remove `systemName` from `setupEndpointRef` since we are removing `AkkaRpcEnv`. ### Remove RpcEnv.uriOf `uriOf` exists because Akka uses different URI formats for with and without authentication, e.g., `akka.ssl.tcp...` and `akka.tcp://...`. But `NettyRpcEnv` uses the same format. So it's not necessary after removing `AkkaRpcEnv`. Author: Shixiong Zhu <shixiong@databricks.com> Closes #10459 from zsxwing/remove-akka-rpc-env.
Showing
- core/src/main/scala/org/apache/spark/SparkConf.scala 2 additions, 1 deletioncore/src/main/scala/org/apache/spark/SparkConf.scala
- core/src/main/scala/org/apache/spark/SparkEnv.scala 3 additions, 9 deletionscore/src/main/scala/org/apache/spark/SparkEnv.scala
- core/src/main/scala/org/apache/spark/deploy/Client.scala 1 addition, 1 deletioncore/src/main/scala/org/apache/spark/deploy/Client.scala
- core/src/main/scala/org/apache/spark/deploy/client/AppClient.scala 1 addition, 2 deletions...main/scala/org/apache/spark/deploy/client/AppClient.scala
- core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala 4 additions, 7 deletions...rc/main/scala/org/apache/spark/deploy/worker/Worker.scala
- core/src/main/scala/org/apache/spark/rpc/RpcEndpointAddress.scala 7 additions, 4 deletions.../main/scala/org/apache/spark/rpc/RpcEndpointAddress.scala
- core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala 6 additions, 22 deletionscore/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
- core/src/main/scala/org/apache/spark/rpc/akka/AkkaRpcEnv.scala 0 additions, 404 deletions...src/main/scala/org/apache/spark/rpc/akka/AkkaRpcEnv.scala
- core/src/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala 1 addition, 4 deletions...c/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala
- core/src/main/scala/org/apache/spark/scheduler/cluster/SimrSchedulerBackend.scala 6 additions, 5 deletions...apache/spark/scheduler/cluster/SimrSchedulerBackend.scala
- core/src/main/scala/org/apache/spark/scheduler/cluster/SparkDeploySchedulerBackend.scala 5 additions, 4 deletions...spark/scheduler/cluster/SparkDeploySchedulerBackend.scala
- core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala 5 additions, 5 deletions...scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
- core/src/main/scala/org/apache/spark/util/ActorLogReceive.scala 0 additions, 70 deletions...rc/main/scala/org/apache/spark/util/ActorLogReceive.scala
- core/src/main/scala/org/apache/spark/util/AkkaUtils.scala 2 additions, 105 deletionscore/src/main/scala/org/apache/spark/util/AkkaUtils.scala
- core/src/main/scala/org/apache/spark/util/RpcUtils.scala 5 additions, 6 deletionscore/src/main/scala/org/apache/spark/util/RpcUtils.scala
- core/src/test/scala/org/apache/spark/MapOutputTrackerSuite.scala 1 addition, 1 deletion...c/test/scala/org/apache/spark/MapOutputTrackerSuite.scala
- core/src/test/scala/org/apache/spark/SSLSampleConfigs.scala 0 additions, 2 deletionscore/src/test/scala/org/apache/spark/SSLSampleConfigs.scala
- core/src/test/scala/org/apache/spark/deploy/StandaloneDynamicAllocationSuite.scala 1 addition, 1 deletion...pache/spark/deploy/StandaloneDynamicAllocationSuite.scala
- core/src/test/scala/org/apache/spark/deploy/client/AppClientSuite.scala 1 addition, 1 deletion...scala/org/apache/spark/deploy/client/AppClientSuite.scala
- core/src/test/scala/org/apache/spark/deploy/master/MasterSuite.scala 1 addition, 1 deletion...st/scala/org/apache/spark/deploy/master/MasterSuite.scala
Please register or sign in to comment