Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/10459#discussion_r48635701
--- Diff: core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala ---
@@ -61,9 +55,14 @@ class AkkaUtilsSuite extends SparkFunSuite with
LocalSparkContext with ResetSyst
val slaveRpcEnv = RpcEnv.create("spark-slave", hostname, 0, conf,
securityManagerBad)
val slaveTracker = new MapOutputTrackerWorker(conf)
- intercept[akka.actor.ActorNotFound] {
+ try {
slaveTracker.trackerEndpoint =
- slaveRpcEnv.setupEndpointRef("spark", rpcEnv.address,
MapOutputTracker.ENDPOINT_NAME)
+ slaveRpcEnv.setupEndpointRef(rpcEnv.address,
MapOutputTracker.ENDPOINT_NAME)
+ } catch {
+ case e: RuntimeException =>
+ assert(e.getMessage.contains("javax.security.sasl.SaslException"))
+ case e: SparkException =>
+ assert(e.getMessage.contains("Message is dropped because Outbox is
stopped"))
--- End diff --
Actually I think that most of these tests are now redundant; the transport
library's auth code is already well covered in the network-common tests.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]