shahidki31 commented on a change in pull request #26616: 
[SPARK-25392][CORE][WEBUI] Prevent error page when accessing pools page from 
history server
URL: https://github.com/apache/spark/pull/26616#discussion_r358422101
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/ui/jobs/AllStagesPage.scala
 ##########
 @@ -30,7 +30,8 @@ import org.apache.spark.ui.{UIUtils, WebUIPage}
 private[ui] class AllStagesPage(parent: StagesTab) extends WebUIPage("") {
   private val sc = parent.sc
   private val subPath = "stages"
-  private def isFairScheduler = parent.isFairScheduler
+  // Show pool information for only live UI
+  private def isFairScheduler = sc.isDefined && parent.isFairScheduler
 
 Review comment:
   Done

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to