LuciferYang commented on code in PR #39494:
URL: https://github.com/apache/spark/pull/39494#discussion_r1066585903


##########
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:
   
https://github.com/apache/spark/blob/c0ac1941c90dc2f1d7120376324e8f8beffe20f2/sql/core/src/test/scala/org/apache/spark/sql/streaming/ui/StreamingQueryStatusListenerSuite.scala#L169
   
   Is it OK to increase `timecout`? 
   
   



-- 
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]

Reply via email to