Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20082#discussion_r158897401
  
    --- Diff: core/src/main/scala/org/apache/spark/TaskContext.scala ---
    @@ -150,6 +150,11 @@ abstract class TaskContext extends Serializable {
        */
       def stageId(): Int
     
    +  /**
    +   * An ID that is unique to the stage attempt that this task belongs to.
    +   */
    +  def stageAttemptId(): Int
    --- End diff --
    
    I think we should call it `stageAttempNumber` to be consistent with 
`taskAttemptNumber`. Also let's follow the comment of `attemptNumber`


---

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

Reply via email to