Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5417#discussion_r28314930
--- Diff:
core/src/test/scala/org/apache/spark/deploy/LogUrlsStandaloneSuite.scala ---
@@ -65,16 +66,22 @@ class LogUrlsStandaloneSuite extends FunSuite with
LocalSparkContext {
new MySparkConf().setAll(getAll)
}
}
- val conf = new MySparkConf()
+ val conf = new MySparkConf().set(
+ "spark.extraListeners",
+ "org.apache.spark.deploy.SaveExecutorInfo")
sc = new SparkContext("local-cluster[2,1,512]", "test", conf)
- val listener = new SaveExecutorInfo
- sc.addSparkListener(listener)
-
// Trigger a job so that executors get added
sc.parallelize(1 to 100, 4).map(_.toString).count()
assert(sc.listenerBus.waitUntilEmpty(WAIT_TIMEOUT_MILLIS))
+ val listenerOpt = sc.listenerBus.listeners.find {
--- End diff --
Can this use the new find method above or did I miss something?
---
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]