gengliangwang commented on a change in pull request #26637: 
[SPARK-29997][WEBUI] Show job name for empty jobs in WebUI
URL: https://github.com/apache/spark/pull/26637#discussion_r350510507
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/status/AppStatusListener.scala
 ##########
 @@ -410,7 +410,7 @@ private[spark] class AppStatusListener(
 
       // Check if there are any pending stages that match this job; mark those 
as skipped.
       val it = liveStages.entrySet.iterator()
-      while (it.hasNext()) {
+      while (job.stageIds.nonEmpty && it.hasNext()) {
 
 Review comment:
   Could you explain why we need this change? 

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to