Skip to content

[SPARK-22832][ML] BisectingKMeans unpersist unused datasets #20017

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

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

unpersist unused datasets

How was this patch tested?

existing tests and local check in Spark-Shell

@SparkQA
Copy link

SparkQA commented Dec 19, 2017

Test build #85104 has finished for PR 20017 at commit e05cc26.

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

@zhengruifeng
Copy link
Contributor Author

ping @srowen

@@ -212,7 +212,9 @@ class BisectingKMeans private (
}
level += 1
}
if(indices != null) indices.unpersist()
if (preIndices != null) preIndices.unpersist(blocking = false)
Copy link
Member

Choose a reason for hiding this comment

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

Do we usually write "blocking ="? there's only one argument.
I'd use braces and put the body on the next line too.

@SparkQA
Copy link

SparkQA commented Dec 20, 2017

Test build #85144 has finished for PR 20017 at commit 3767e80.

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

@srowen
Copy link
Member

srowen commented Dec 20, 2017

Merged to master

@asfgit asfgit closed this in d762d11 Dec 20, 2017
@zhengruifeng zhengruifeng deleted the bkm_unpersist branch December 21, 2017 01:57
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