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

    https://github.com/apache/spark/pull/1188#discussion_r15331558
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -99,19 +99,30 @@ private[ui] class StageTableBase(
             {s.name}
           </a>
     
    +    val cachedRddInfos = s.rddInfos.filter(_.numCachedPartitions > 0)
         val details = if (s.details.nonEmpty) {
           <span 
onclick="this.parentNode.querySelector('.stage-details').classList.toggle('collapsed')"
                 class="expand-details">
    -        +show details
    -      </span>
    -      <pre class="stage-details collapsed">{s.details}</pre>
    +        +call stack
    +      </span> ++
    +      <div class="stage-details collapsed">
    +        {if (cachedRddInfos.nonEmpty) {
    +          <strong>Persisted RDD:</strong> ++
    +          cachedRddInfos.map { i =>
    +            <a 
href={"%s/storage/rdd?id=%d".format(UIUtils.prependBaseUri(basePath), i.id)}>
    +              {i.name}
    +            </a>
    +          }
    +        }}
    +        <pre>{s.details}</pre>
    +      </div>
         }
     
         val stageDataOption = listener.stageIdToData.get(s.stageId)
         // Too many nested map/flatMaps with options are just annoying to 
read. Do this imperatively.
         if (stageDataOption.isDefined && 
stageDataOption.get.description.isDefined) {
           val desc = stageDataOption.get.description
    -      <div><em>{desc}</em></div><div>{nameLink} {killLink}</div>
    +      <div><em>{desc}</em></div><div>{killLink} {nameLink} {details}</div>
    --- End diff --
    
    ah okay cool


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

Reply via email to