We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90a8762 commit 2532668Copy full SHA for 2532668
core/src/main/scala/org/apache/spark/util/AkkaUtils.scala
@@ -239,9 +239,9 @@ private[spark] object AkkaUtils extends Logging {
239
}
240
241
def protocol(actorSystem: ActorSystem): String = {
242
- protocol(Try {
243
- actorSystem.settings.config.getBoolean("akka.remote.netty.tcp.enable-ssl")
244
- }.getOrElse(false))
+ val akkaConf = actorSystem.settings.config
+ val sslProp = "akka.remote.netty.tcp.enable-ssl"
+ protocol(akkaConf.hasPath(sslProp) && akkaConf.getBoolean(sslProp))
245
246
247
def protocol(ssl: Boolean = false): String = {
0 commit comments