Skip to content

[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

Closed
wants to merge 1 commit into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jul 9, 2015

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)
Copy link
Member Author

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.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #36930 has finished for PR 7323 at commit b3caf58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -483,7 +486,6 @@ class CheckpointSuite extends TestSuiteBase {
assert(batchCounter.getNumCompletedBatches === index + numBatchesAfterRestart + 1)
}
}
clock.advance(batchDuration.milliseconds)
Copy link
Member Author

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.

@andrewor14
Copy link
Contributor

I've manually triggered this test a few more times.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #1023 has finished for PR 7323 at commit b3caf58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #1021 has finished for PR 7323 at commit b3caf58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #1020 has finished for PR 7323 at commit b3caf58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #1022 has finished for PR 7323 at commit b3caf58.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

Looks great. Merging into master and 1.4. Thanks Ryan!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants