-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-14804][Spark][Graphx] Fix checkpointing of VertexRDD/EdgeRDD #15396
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1582,14 +1582,15 @@ abstract class RDD[T: ClassTag]( | |
| /** | ||
| * Return whether this RDD is checkpointed and materialized, either reliably or locally. | ||
| */ | ||
| def isCheckpointed: Boolean = checkpointData.exists(_.isCheckpointed) | ||
| def isCheckpointed: Boolean = isCheckpointedAndMaterialized | ||
|
|
||
| /** | ||
| * Return whether this RDD is checkpointed and materialized, either reliably or locally. | ||
| * This is introduced as an alias for `isCheckpointed` to clarify the semantics of the | ||
| * return value. Exposed for testing. | ||
| */ | ||
| private[spark] def isCheckpointedAndMaterialized: Boolean = isCheckpointed | ||
| private[spark] def isCheckpointedAndMaterialized: Boolean = | ||
| checkpointData.exists(_.isCheckpointed) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One way to fix the duplicate code is to make this one final and have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do you mean. if isCheckpointedAndMaterialized = isCheckpointed, and you override isCheckpointed, then that would change the behavior of isCheckpointedAndMaterialized as well.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, I meant:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed it. Can you check again?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks good, but you forgot to make this final. No big deal |
||
|
|
||
| /** | ||
| * Return whether this RDD is marked for local checkpointing. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to fix the comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait I just realized this is exactly the same as
isCheckpointed. It's kind of confusing why we have two methods that do the same thing. Is it because VertexRDD or something overrides one but not the other?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewor14 This method left as is in this PR - #15447