You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2023/01/11 09:26:33 UTC
[GitHub] [spark] panbingkun commented on a diff in pull request #39494: [SPARK-41972][TESTS] Fix a flaky test in StreamingQueryStatusListenerSuite
panbingkun commented on code in PR #39494:
URL: https://github.com/apache/spark/pull/39494#discussion_r1066758271
##########
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:
id: 017350a8-fb82-475a-86d5-c39e25a3410e, runId: b09905df-70d5-4659-94f5-7a2f88385317
id: fabdb4cc-7849-4a46-aef0-92fcc5879a2c, runId: 524ecd20-b351-40ae-9f7b-8d6aa6032f42
id: 331a07fa-8195-44a6-a4ce-12036d63c19f, runId: fec57472-c1be-4552-8d31-aa1982675322
delete runId: List(524ecd20-b351-40ae-9f7b-8d6aa6032f42),
inactiveQueries:
524ecd20-b351-40ae-9f7b-8d6aa6032f42, fabdb4cc-7849-4a46-aef0-92fcc5879a2c, Some(1673428448998)
b09905df-70d5-4659-94f5-7a2f88385317, 017350a8-fb82-475a-86d5-c39e25a3410e, Some(1673428448998)
fec57472-c1be-4552-8d31-aa1982675322, 331a07fa-8195-44a6-a4ce-12036d63c19f, Some(1673428448998)
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org