Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2333#discussion_r17443289
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/PoolPage.scala ---
    @@ -30,6 +35,35 @@ private[ui] class PoolPage(parent: JobProgressTab) 
extends WebUIPage("pool") {
       private val sc = parent.sc
       private val listener = parent.listener
     
    +  override def renderJson(request: HttpServletRequest): JValue = {
    +    listener.synchronized {
    +      val poolName = request.getParameter("poolname")
    +      val poolToActiveStages = listener.poolToActiveStages
    +      val activeStages = poolToActiveStages.get(poolName) match {
    +        case Some(s) => s.values.map {
    +          case info: StageInfo =>
    +            JsonProtocol.stageInfoToJson(info)
    +        }
    +        case None => Seq[JValue]()
    +      }
    +
    +      val pools = if (live) Seq(sc.getPoolForName(poolName).get) else 
Seq[Schedulable]()
    +
    +      val poolList = pools.map {
    +        case schedulable: Schedulable =>
    --- End diff --
    
    same here, no need to do `case` and specify the type


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to