-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-7419][Streaming][Tests]Fix CheckpointSuite.recovery with file input stream #7323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
eventually(eventuallyTimeout) { | ||
// Wait until all files have been recorded and all batches have started | ||
assert(recordedFiles(ssc) === Seq(1, 2, 3) && batchCounter.getNumStartedBatches === 3) | ||
} | ||
clock.advance(batchDuration.milliseconds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line will add one batch, so I move it here. And because of this line, the clock of the recovery StreamingContext will be 14000ms.
Test build #36930 has finished for PR 7323 at commit
|
@@ -483,7 +486,6 @@ class CheckpointSuite extends TestSuiteBase { | |||
assert(batchCounter.getNumCompletedBatches === index + numBatchesAfterRestart + 1) | |||
} | |||
} | |||
clock.advance(batchDuration.milliseconds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary now.
I've manually triggered this test a few more times. |
Test build #1023 has finished for PR 7323 at commit
|
Test build #1021 has finished for PR 7323 at commit
|
Test build #1020 has finished for PR 7323 at commit
|
Test build #1022 has finished for PR 7323 at commit
|
Looks great. Merging into master and 1.4. Thanks Ryan!! |
…le input stream Fix this failure: https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-SBT/2886/AMPLAB_JENKINS_BUILD_PROFILE=hadoop2.3,label=centos/testReport/junit/org.apache.spark.streaming/CheckpointSuite/recovery_with_file_input_stream/ To reproduce this failure, you can add `Thread.sleep(2000)` before this line https://github.com/apache/spark/blob/a9c4e29950a14e32acaac547e9a0e8879fd37fc9/streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala#L477 Author: zsxwing <[email protected]> Closes #7323 from zsxwing/SPARK-7419 and squashes the following commits: b3caf58 [zsxwing] Fix CheckpointSuite.recovery with file input stream
Fix this failure: https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-SBT/2886/AMPLAB_JENKINS_BUILD_PROFILE=hadoop2.3,label=centos/testReport/junit/org.apache.spark.streaming/CheckpointSuite/recovery_with_file_input_stream/
To reproduce this failure, you can add
Thread.sleep(2000)
before this linespark/streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala
Line 477 in a9c4e29