Skip to content

Commit a23f1f5

Browse files
committed
address comment
1 parent d19c232 commit a23f1f5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/src/main/scala/org/apache/spark/status/AppStatusStore.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@ private[spark] class AppStatusStore(
136136
store.read(classOf[StageDataWrapper], Array(stageId, stageAttemptId)).locality
137137
}
138138

139-
private def isInMemoryStore: Boolean = store match {
140-
case _: InMemoryStore => true
141-
case _: ElementTrackingStore => true // Live UI
142-
case _ => false
143-
}
139+
private def isInMemoryStore: Boolean = store.isInstanceOf[InMemoryStore] || listener.isDefined
144140

145141
/**
146142
* Calculates a summary of the task metrics for the given stage attempt, returning the

0 commit comments

Comments
 (0)