deshanxiao commented on a change in pull request #23637:
[SPARK-26714][CORE][WEBUI] Show 0 partition job in WebUI
URL: https://github.com/apache/spark/pull/23637#discussion_r250939993
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala
##########
@@ -857,8 +857,13 @@ private[spark] object ApiHelper {
}
def lastStageNameAndDescription(store: AppStatusStore, job: JobData):
(String, String) = {
- val stage = store.asOption(store.stageAttempt(job.stageIds.max, 0)._1)
- (stage.map(_.name).getOrElse(""),
stage.flatMap(_.description).getOrElse(job.name))
+ // Some jobs have only 0 partition.
+ if (job.stageIds.isEmpty) {
+ ("", "This job has 0 partition")
Review comment:
Er....You are right. It's really not appropriate. It's last stage name in a
job not a job name. But in this case, We don't have any stage. I think the most
suitable name is the `callsite` of running job.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]