File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
core/src/main/scala/org/apache/spark Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ abstract class TaskContext extends Serializable {
151
151
def stageId (): Int
152
152
153
153
/**
154
- * An ID that is unique to the stage attempt that this task belongs to.
154
+ * An ID that is unique to the stage attempt that this task belongs to. It represents how many
155
+ * times the stage has been attempted. The first stage attempt will be assigned stageAttemptId = 0
156
+ * , and subsequent attempts will increasing stageAttemptId one by one.
155
157
*/
156
158
def stageAttemptId (): Int
157
159
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ import org.apache.spark.util._
41
41
* `TaskMetrics` & `MetricsSystem` objects are not thread safe.
42
42
*/
43
43
private [spark] class TaskContextImpl (
44
- val stageId : Int ,
45
- val stageAttemptId : Int ,
46
- val partitionId : Int ,
44
+ override val stageId : Int ,
45
+ override val stageAttemptId : Int ,
46
+ override val partitionId : Int ,
47
47
override val taskAttemptId : Long ,
48
48
override val attemptNumber : Int ,
49
49
override val taskMemoryManager : TaskMemoryManager ,
You can’t perform that action at this time.
0 commit comments