sarutak commented on a change in pull request #29082:
URL: https://github.com/apache/spark/pull/29082#discussion_r460655346
##########
File path: core/src/main/scala/org/apache/spark/status/AppStatusStore.scala
##########
@@ -421,6 +420,26 @@ private[spark] class AppStatusStore(
constructTaskDataList(taskDataWrapperIter)
}
+ def exceptionSummary(stageId: Int, attemptId: Int): Seq[v1.ExceptionSummary]
= {
+ val tasks = taskList(stageId, attemptId, Int.MaxValue)
+ tasks.filter(t => t.status.equalsIgnoreCase("failed"))
+ .flatMap(t => t.errorMessage)
Review comment:
Sometimes exceptions can have no error message.
For example, the summary is not shown with the following example.
```
sc.parallelize(1 to 10).foreach(_ => throw new RuntimeException())
```
----------------------------------------------------------------
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]