LuciferYang commented on code in PR #39494:
URL: https://github.com/apache/spark/pull/39494#discussion_r1066590047
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/ui/StreamingQueryStatusListenerSuite.scala:
##########
@@ -181,9 +181,15 @@ class StreamingQueryStatusListenerSuite extends StreamTest
{
val terminateEvent1 = new StreamingQueryListener.QueryTerminatedEvent(id1,
runId1, None)
listener.onQueryTerminated(terminateEvent1)
checkInactiveQueryStatus(1, Seq(id1))
+ // SPARK-41972: having a short sleep here to make sure the end time of
query 2 is larger than
+ // query 1.
+ Thread.sleep(20)
Review Comment:
After a close look at pr description, I think the assumption is reasonable
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]