Skip to content

[SPARK-7767] [STREAMING] Added test for checkpoint serialization in StreamingContext.start() #6292

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 2 commits into from

Conversation

tdas
Copy link
Contributor

@tdas tdas commented May 20, 2015

Currently, the background checkpointing thread fails silently if the checkpoint is not serializable. It is hard to debug and therefore its best to fail fast at start() when checkpointing is enabled and the checkpoint is not serializable.

@AmplabJenkins
Copy link

Merged build triggered.

@tdas
Copy link
Contributor Author

tdas commented May 20, 2015

@zsxwing Can you take a look?

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 20, 2015

Test build #33167 has started for PR 6292 at commit c35237b.

}

// Test whether start() fails early when checkpointing is enabled
intercept[IllegalArgumentException] {
Copy link
Member

Choose a reason for hiding this comment

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

Because IllegalArgumentException is a common exception, it's better to check the exception message so that if other place throws IllegalArgumentException, this test will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its unlikely to that start() will throw any other illegal argument, but I agree that this may change in the future. Best to add the message check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I am thinking its probably not the best idea to throw IllegalArgumentException, as there isnt a specific argument here. And other places like DStream.map and RDD.map throw NotSerializableException. So I am changing it to NotSerializableException.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for NotSerializableException

@harishreedharan
Copy link
Contributor

LGTM (since you are already changing the exception type)

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@zsxwing
Copy link
Member

zsxwing commented May 20, 2015

LGTM

@SparkQA
Copy link

SparkQA commented May 20, 2015

Test build #33174 has started for PR 6292 at commit 51304e6.

@SparkQA
Copy link

SparkQA commented May 20, 2015

Test build #33167 has finished for PR 6292 at commit c35237b.

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

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33167/
Test PASSed.

@SparkQA
Copy link

SparkQA commented May 20, 2015

Test build #33174 has finished for PR 6292 at commit 51304e6.

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

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33174/
Test PASSed.

@tdas
Copy link
Contributor Author

tdas commented May 20, 2015

All right, thanks all for reviewing. Merging this.

asfgit pushed a commit that referenced this pull request May 20, 2015
…treamingContext.start()

Currently, the background checkpointing thread fails silently if the checkpoint is not serializable. It is hard to debug and therefore its best to fail fast at `start()` when checkpointing is enabled and the checkpoint is not serializable.

Author: Tathagata Das <[email protected]>

Closes #6292 from tdas/SPARK-7767 and squashes the following commits:

51304e6 [Tathagata Das] Addressed comments.
c35237b [Tathagata Das] Added test for checkpoint serialization in StreamingContext.start()

(cherry picked from commit 3c434cb)
Signed-off-by: Tathagata Das <[email protected]>
@asfgit asfgit closed this in 3c434cb May 20, 2015
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
…treamingContext.start()

Currently, the background checkpointing thread fails silently if the checkpoint is not serializable. It is hard to debug and therefore its best to fail fast at `start()` when checkpointing is enabled and the checkpoint is not serializable.

Author: Tathagata Das <[email protected]>

Closes apache#6292 from tdas/SPARK-7767 and squashes the following commits:

51304e6 [Tathagata Das] Addressed comments.
c35237b [Tathagata Das] Added test for checkpoint serialization in StreamingContext.start()
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
…treamingContext.start()

Currently, the background checkpointing thread fails silently if the checkpoint is not serializable. It is hard to debug and therefore its best to fail fast at `start()` when checkpointing is enabled and the checkpoint is not serializable.

Author: Tathagata Das <[email protected]>

Closes apache#6292 from tdas/SPARK-7767 and squashes the following commits:

51304e6 [Tathagata Das] Addressed comments.
c35237b [Tathagata Das] Added test for checkpoint serialization in StreamingContext.start()
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
…treamingContext.start()

Currently, the background checkpointing thread fails silently if the checkpoint is not serializable. It is hard to debug and therefore its best to fail fast at `start()` when checkpointing is enabled and the checkpoint is not serializable.

Author: Tathagata Das <[email protected]>

Closes apache#6292 from tdas/SPARK-7767 and squashes the following commits:

51304e6 [Tathagata Das] Addressed comments.
c35237b [Tathagata Das] Added test for checkpoint serialization in StreamingContext.start()
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.

5 participants