Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/1262#discussion_r14611170
--- Diff:
core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
@@ -75,8 +65,13 @@ class JobProgressListener(conf: SparkConf) extends
SparkListener {
override def onStageCompleted(stageCompleted:
SparkListenerStageCompleted) = synchronized {
val stage = stageCompleted.stageInfo
val stageId = stage.stageId
+ val stageData = stageUIData.getOrElseUpdate(stage.stageId, {
+ logWarning("Stage completed for unknown stage " + stage.stageId)
+ new StageUIData
+ })
+
// Remove by stageId, rather than by StageInfo, in case the StageInfo
is from storage
- poolToActiveStages(stageIdToPool(stageId)).remove(stageId)
+ poolToActiveStages(stageData.schedulingPool).remove(stageId)
--- End diff --
I just realized even before it could throw a key-not-found exception
---
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.
---