sarutak 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_r350598825
 
 

 ##########
 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:
   Ah, I intended to refactor [this 
change](https://github.com/apache/spark/pull/26637/commits/44d174a139e01397ac134a22388f17bbaadca46d#diff-b43d5bd18e0f3b5f33d734a37389ed34R417)
 but it's wrong refactoring.
   I'll revert this refactoring.
   
   

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