[ 
https://issues.apache.org/jira/browse/SPARK-3625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143242#comment-14143242
 ] 

Guoqiang Li commented on SPARK-3625:
------------------------------------

[~srowen]
If checkpoint work, [markCheckpointed| 
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rdd/RDD.scala#L1287]
 method will be called. all references to its parent RDDs will be removed.
I have updated the reproduce code.

> In some cases, the RDD.checkpoint does not work
> -----------------------------------------------
>
>                 Key: SPARK-3625
>                 URL: https://issues.apache.org/jira/browse/SPARK-3625
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.0.2, 1.1.0
>            Reporter: Guoqiang Li
>            Assignee: Guoqiang Li
>            Priority: Blocker
>
> The reproduce code:
> {code}
>     sc.setCheckpointDir(checkpointDir)
>     val c = sc.parallelize((1 to 1000)).map(_ + 1)
>     c.count
>     val dep = c.dependencies.head.rdd
>     c.checkpoint()
>     c.count
>     assert(dep != c.dependencies.head.rdd)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to