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_r349989774
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
 ##########
 @@ -696,8 +696,11 @@ private[spark] class DAGScheduler(
     val jobId = nextJobId.getAndIncrement()
     if (partitions.isEmpty) {
       val time = clock.getTimeMillis()
+      val dummyStageInfo = new StageInfo(
+        -1, -1, callSite.shortForm, 0, Seq.empty[RDDInfo], Seq.empty[Int], "")
 
 Review comment:
   How about defining `INVALID_STAGE_ID` and `INVALID_ATTEMPT_ID` in 
`StageInfo`?

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