Skip to content

Conversation

@jasoncl
Copy link
Contributor

@jasoncl jasoncl commented Jan 12, 2016

Some VertexRDD and EdgeRDD are created during the intermediate step of g.connectedComponents() but unnecessarily left cached after the method is done. The fix is to unpersist these RDDs once they are no longer in use.

A test case is added to confirm the fix for the reported bug.

Copy link
Contributor

Choose a reason for hiding this comment

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

better to use

assert(sc.getPersistentRDDs.nonEmpty)

@srowen
Copy link
Member

srowen commented Jan 12, 2016

@jasoncl I agree with this change, though I think this ends up returning RDDs that depend on other RDDs which you then unpersist before use. I agree with the comment on test style.

@SparkQA
Copy link

SparkQA commented Jan 12, 2016

Test build #2373 has finished for PR 10713 at commit 0f78c0e.

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

@srowen
Copy link
Member

srowen commented Jan 15, 2016

Merged to master

@asfgit asfgit closed this in d0a5c32 Jan 15, 2016
asfgit pushed a commit that referenced this pull request Jun 7, 2016
Some VertexRDD and EdgeRDD are created during the intermediate step of g.connectedComponents() but unnecessarily left cached after the method is done. The fix is to unpersist these RDDs once they are no longer in use.

A test case is added to confirm the fix for the reported bug.

Author: Jason Lee <[email protected]>

Closes #10713 from jasoncl/SPARK-12655.

(cherry picked from commit d0a5c32)
Signed-off-by: Sean Owen <[email protected]>
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jun 8, 2016
Some VertexRDD and EdgeRDD are created during the intermediate step of g.connectedComponents() but unnecessarily left cached after the method is done. The fix is to unpersist these RDDs once they are no longer in use.

A test case is added to confirm the fix for the reported bug.

Author: Jason Lee <[email protected]>

Closes apache#10713 from jasoncl/SPARK-12655.

(cherry picked from commit d0a5c32)
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 5830828)
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