HeartSaVioR commented on a change in pull request #25837:
[MINOR][CORE][SQL][STREAMING] Unify default wait time for waitUntilEmpty
URL: https://github.com/apache/spark/pull/25837#discussion_r325934206
##########
File path: core/src/main/scala/org/apache/spark/scheduler/LiveListenerBus.scala
##########
@@ -186,6 +186,17 @@ private[spark] class LiveListenerBus(conf: SparkConf) {
metricsSystem.registerSource(metrics)
}
+ /**
+ * For testing only. Wait until there are no more events in the queue, or
until the default
+ * wait time has elapsed. Throw `TimeoutException` if the specified time
elapsed before the queue
+ * emptied.
+ * Exposed for testing.
+ */
+ @throws(classOf[TimeoutException])
+ def waitUntilEmpty(): Unit = {
+ waitUntilEmpty(TimeUnit.SECONDS.toMillis(10))
+ }
Review comment:
OK, I'll file an issue and update the title of PR. Thanks!
----------------------------------------------------------------
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]