Skip to content
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

[SPARK-13693][Streaming][Tests]Stop StreamingContext before deleting checkpoint dir #11531

Closed
wants to merge 1 commit into from
Closed

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Mar 4, 2016

What changes were proposed in this pull request?

Stop StreamingContext before deleting checkpoint dir to avoid the race condition that deleting the checkpoint dir and writing checkpoint happen at the same time.

The flaky test log is here: https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.7/256/testReport/junit/org.apache.spark.streaming/MapWithStateSuite/_It_is_not_a_test_/

How was this patch tested?

unit tests

@SparkQA
Copy link

SparkQA commented Mar 5, 2016

Test build #52497 has finished for PR 11531 at commit 7d27863.

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

@srowen
Copy link
Member

srowen commented Mar 5, 2016

+1. Is this the only test that does this?

@zsxwing
Copy link
Member Author

zsxwing commented Mar 5, 2016

+1. Is this the only test that does this?

Didn't find other similar issue. Thanks. Merging to master.

@asfgit asfgit closed this in 8290004 Mar 5, 2016
@zsxwing zsxwing deleted the SPARK-13693 branch March 5, 2016 23:31
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
… checkpoint dir

## What changes were proposed in this pull request?

Stop StreamingContext before deleting checkpoint dir to avoid the race condition that deleting the checkpoint dir and writing checkpoint happen at the same time.

The flaky test log is here: https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.7/256/testReport/junit/org.apache.spark.streaming/MapWithStateSuite/_It_is_not_a_test_/

## How was this patch tested?

unit tests

Author: Shixiong Zhu <shixiong@databricks.com>

Closes apache#11531 from zsxwing/SPARK-13693.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants