Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Jul 25, 2016

What changes were proposed in this pull request?

This PR moves ssc.stop() into finally for StreamingContextSuite.createValidCheckpoint to avoid leaking a StreamingContext since leaking a StreamingContext will fail a lot of tests and make us hard to find the real failure one.

How was this patch tested?

Jenkins unit tests

eventually(timeout(10000 millis)) {
assert(Checkpoint.getCheckpointFiles(checkpointDirectory).size > 1)
try {
eventually(timeout(30000 millis)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also increased this one to 30 seconds in case the Jenkins worker is pretty busy.

@zsxwing
Copy link
Member Author

zsxwing commented Jul 25, 2016

@tdas
Copy link
Contributor

tdas commented Jul 25, 2016

LGTM.

@SparkQA
Copy link

SparkQA commented Jul 26, 2016

Test build #62849 has finished for PR 14354 at commit 5226a5e.

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

@tdas
Copy link
Contributor

tdas commented Jul 26, 2016

Merging to master and 2.0

@asfgit asfgit closed this in e164a04 Jul 26, 2016
asfgit pushed a commit that referenced this pull request Jul 26, 2016
…uite when eventually fails

## What changes were proposed in this pull request?

This PR moves `ssc.stop()` into `finally` for `StreamingContextSuite.createValidCheckpoint` to avoid leaking a StreamingContext since leaking a StreamingContext will fail a lot of tests and make us hard to find the real failure one.

## How was this patch tested?

Jenkins unit tests

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #14354 from zsxwing/ssc-leak.

(cherry picked from commit e164a04)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@zsxwing zsxwing deleted the ssc-leak branch July 26, 2016 04:58
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