Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/6306#discussion_r30765003
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/BasicOperationsSuite.scala
---
@@ -587,7 +590,11 @@ class BasicOperationsSuite extends TestSuiteBase {
for (i <- 0 until input.size) {
testServer.send(input(i).toString + "\n")
Thread.sleep(200)
+ val numCompletedBatches = batchCounter.getNumCompletedBatches
clock.advance(batchDuration.milliseconds)
+ if (!batchCounter.waitUntilBatchesCompleted(numCompletedBatches
+ 1, 5000)) {
+ fail("A batch cannot complete in 5 seconds")
--- End diff --
"Batch took more that 5 seconds to complete"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]