Skip to content

Commit 8fe31e0

Browse files
author
Ilya Ganelin
committed
Made StageFailure private to spark scheduler
1 parent f8744be commit 8fe31e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class DAGScheduler(
103103
// may be retried. However, it only makes sense to limit the number of times that a stage fails
104104
// if it's failing for the same reason every time. Therefore, track why a stage fails as well as
105105
// how many times it has failed.
106-
case class StageFailure(failureReason : String) {
106+
private[scheduler] case class StageFailure(failureReason : String) {
107107
var count = 1
108108
def fail() = { count += 1 }
109109
def shouldAbort(): Boolean = { count >= maxStageFailures }

0 commit comments

Comments
 (0)