GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/3515

    [SPARK-4654] Clean up DAGScheduler getMissingParentStages / stageDependsOn 
methods

    DAGScheduler has getMissingParentStages() and stageDependsOn() methods 
which are suspiciously similar to getParentStages().
    
    Both of these methods perform traversals of the RDD / Stage graph to 
inspect parent stages. We can remove both of these methods, though: the set of 
parent stages is known when a Stage instance is constructed and is stored in 
Stage.parents, so we can just check for missing stages by looking for 
unavailable stages in Stage.parents. Similarly, we can determine whether one 
stage depends on another by searching Stage.parents rather than performing a 
graph traversal from scratch.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark 
dagscheduler-missingparents-cleanup

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3515.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3515
    
----
commit 1ab3d6de26ded994412d384b273fa16f7eed1f1f
Author: Josh Rosen <[email protected]>
Date:   2014-11-29T19:34:43Z

    Clean up DAGScheduler getMissingParentStages / stageDependsOn methods.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to