srowen 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_r252337355
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/status/AppStatusListener.scala
 ##########
 @@ -319,15 +319,15 @@ private[spark] class AppStatusListener(
     }
 
     val lastStageInfo = event.stageInfos.sortBy(_.stageId).lastOption
-    val lastStageName = lastStageInfo.map(_.name).getOrElse("(Unknown Stage 
Name)")
+    val jobName = lastStageInfo.map(_.name).getOrElse("(Unknown job without 
stages)")
 
 Review comment:
   I'm OK with this... I guess the _job_ isn't unknown, but its _name_ is. 
"Unknown job name" would be more accurate, or a blank string. It doesn't so 
much matter that it has no stages.

----------------------------------------------------------------
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]

Reply via email to