Skip to content

Commit 71bebd6

Browse files
author
KaiXinXiaoLei
committed
get attempID
1 parent 6faf63d commit 71bebd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/ui/scope/RDDOperationGraph.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ private[ui] class RDDOperationCluster(val id: String, private var _name: String)
7777
private[ui] object RDDOperationGraph extends Logging {
7878

7979
val STAGE_CLUSTER_PREFIX = "stage_"
80+
val stageIdAttemptedMap = new mutable.HashMap[String, String]()
8081

8182
/**
8283
* Construct a RDDOperationGraph for a given stage.
@@ -160,6 +161,10 @@ private[ui] object RDDOperationGraph extends Logging {
160161
RDDOperationGraph(internalEdges, outgoingEdges, incomingEdges, rootCluster)
161162
}
162163

164+
def getStageInfo(stage: StageInfo): Unit = {
165+
stageIdAttemptedMap.put(stage.stageId.toString, stage.attemptId.toString)
166+
}
167+
163168
/**
164169
* Generate the content of a dot file that describes the specified graph.
165170
*

0 commit comments

Comments
 (0)