sarutak commented on a change in pull request #29082:
URL: https://github.com/apache/spark/pull/29082#discussion_r470298801
##########
File path: core/src/main/scala/org/apache/spark/status/AppStatusStore.scala
##########
@@ -421,6 +420,51 @@ private[spark] class AppStatusStore(
constructTaskDataList(taskDataWrapperIter)
}
+ def exceptionSummary(stageId: Int, attemptId: Int): Seq[v1.ExceptionSummary]
= {
+ val (stageData, _) = stageAttempt(stageId, attemptId)
+ val key = Array(stageId, attemptId, stageData.numFailedTasks)
+ asOption(store.read(classOf[CachedExceptionSummary], key))
+ .map(_.exceptionSummary)
+ .getOrElse {
+ val exceptionSummary = computeExceptionSummary(stageId, attemptId)
+ val cachedExceptionSummary = new CachedExceptionSummary(
+ stageId,
+ attemptId,
+ stageData.numFailedTasks,
+ exceptionSummary
+ )
+ store.write(cachedExceptionSummary)
Review comment:
`CachedExceptionSummary` seems to never be deleted. This would be a
potential cause of memory leak?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]