AngersZhuuuu commented on a change in pull request #35277:
URL: https://github.com/apache/spark/pull/35277#discussion_r790114910



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListenerSuite.scala
##########
@@ -933,6 +937,11 @@ class SQLAppStatusListenerSuite extends SharedSparkSession 
with JsonTestUtils
             statusStore.executionsList().last.metricValues != null)
         }
 
+        // Wait for bytesWrittenListener receive all TaskEnd event log.
+        eventually(timeout(10.seconds), interval(10.milliseconds)) {
+          assert(finishedTask == numPartitions)
+        }
+
         assert(bytesWritten.sum == 246)
         assert(recordsWritten.sum == 20)

Review comment:
       Or we can remove the new added check of finishedTask, and chenge here to 
   ```
    assert(bytesWritten.sum == 123 * finishedTask)
   assert(recordsWritten.sum == 10 * finishedtask)
   ```




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