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

[BEAM-1828] Switched to using "destroy" instead of "unpersist" for broadcasts. #2355

Closed
wants to merge 1 commit into from
Closed

[BEAM-1828] Switched to using "destroy" instead of "unpersist" for broadcasts. #2355

wants to merge 1 commit into from

Conversation

staslev
Copy link
Contributor

@staslev staslev commented Mar 29, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@staslev
Copy link
Contributor Author

staslev commented Mar 29, 2017

R: @amitsela

@staslev
Copy link
Contributor Author

staslev commented Mar 29, 2017

Run Spark ValidatesRunner

@@ -131,7 +131,7 @@ public static void advance(JavaSparkContext jsc) {
if (broadcast != null) {
// for now this is blocking, we could make this asynchronous
// but it could slow down WM propagation.
broadcast.unpersist(true);
broadcast.destroy(true);
Copy link
Member

Choose a reason for hiding this comment

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

Default is true so you can drop the parameter if you want..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@amitsela
Copy link
Member

LGTM, added a minor comment but nothing of importance.

@staslev staslev changed the title Switched to using "destroy" instead of "unpersist" for broadcasts. [BEAM-1828] Switched to using "destroy" instead of "unpersist" for broadcasts. Mar 29, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 70.163% when pulling c89ac60 on staslev:BEAM-1828-use-destroy-in-GlobalWatermarkHolder into 99056df on apache:master.

@asfbot
Copy link

asfbot commented Mar 29, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8883/
--none--

@asfbot
Copy link

asfbot commented Mar 29, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/1427/
--none--

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 70.154% when pulling c89ac60 on staslev:BEAM-1828-use-destroy-in-GlobalWatermarkHolder into 99056df on apache:master.

@asfbot
Copy link

asfbot commented Mar 29, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8889/
--none--

@staslev
Copy link
Contributor Author

staslev commented Mar 30, 2017

Run Spark ValidatesRunner

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 70.169% when pulling 98963b4 on staslev:BEAM-1828-use-destroy-in-GlobalWatermarkHolder into 70aa0a4 on apache:master.

@asfbot
Copy link

asfbot commented Mar 30, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8942/
--none--

@asfgit asfgit closed this in 5363431 Mar 30, 2017
@staslev staslev deleted the BEAM-1828-use-destroy-in-GlobalWatermarkHolder branch March 30, 2017 12:51
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.

4 participants