Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12655#discussion_r60858650
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -403,32 +403,47 @@ class DAGScheduler(
         parents.toList
       }
     
    -  /** Find ancestor shuffle dependencies that are not registered in 
shuffleToMapStage yet */
    -  private def getAncestorShuffleDependencies(rdd: RDD[_]): 
Stack[ShuffleDependency[_, _, _]] = {
    -    val parents = new Stack[ShuffleDependency[_, _, _]]
    +  /**
    +   * Find ancestor shuffle dependencies that are not registered in 
shuffleToMapStage yet.
    +   * This is done in topological order to create ancestor stages first to 
ensure that the result
    --- End diff --
    
    Can you move this comment to some place inside the method? It doesn't seem 
relevant to someone using this method, since the order of the 
ShuffleDependencies returned doesn't matter


---
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