vanzin commented on a change in pull request #25706: [SPARK-26989][CORE][TEST] 
DAGSchedulerSuite: ensure listeners are fully processed before checking 
recorded values
URL: https://github.com/apache/spark/pull/25706#discussion_r321924406
 
 

 ##########
 File path: 
core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala
 ##########
 @@ -2813,6 +2823,7 @@ class DAGSchedulerSuite extends SparkFunSuite with 
LocalSparkContext with TimeLi
       null))
 
     assert(failure == null, "job should not fail")
+    sc.listenerBus.waitUntilEmpty(WAIT_TIMEOUT_MILLIS)
 
 Review comment:
   I'm a little confused about this one. What is it waiting on? `runEvent` (and 
`failedStages`) is unrelated to the listener bus.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to