1. [SPARK-23962][SQL][TEST] Fix race in currentExecutionIds(). (commit: 571269519a49e0651575de18de81b788b6548afd) (details)
Commit 571269519a49e0651575de18de81b788b6548afd by wenchen
[SPARK-23962][SQL][TEST] Fix race in currentExecutionIds().
SQLMetricsTestUtils.currentExecutionIds() was racing with the listener
bus, which lead to some flaky tests.  We should wait till the listener
bus is empty.
I tested by adding some Thread.sleep()s in SQLAppStatusListener, which
reproduced the exceptions I saw on Jenkins.  With this change, they went
Author: Imran Rashid <>
Closes #21041 from squito/SPARK-23962.
(cherry picked from commit 6a2289ecf020a99cd9b3bcea7da5e78fb4e0303a)
Signed-off-by: Wenchen Fan <>
(commit: 571269519a49e0651575de18de81b788b6548afd)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsTestUtils.scala (diff)