You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by CodingCat <gi...@git.apache.org> on 2014/04/16 04:14:39 UTC

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

GitHub user CodingCat opened a pull request:

    https://github.com/apache/spark/pull/421

    SPARK-1399: show stage failure reason in UI

    https://issues.apache.org/jira/browse/SPARK-1399
    
    refactor the StageTable a bit to support additional column for failed stage

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/CodingCat/spark SPARK-1399

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/421.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #421
    
----
commit 86eaf766a1d8872c32e395525d16eddc038e23e7
Author: CodingCat <zh...@gmail.com>
Date:   2014-04-16T02:18:53Z

    show stage failure reason in UI

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40845029
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556461
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556471
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40882725
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40978362
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885664
  
    
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14265/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556714
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40559986
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40884436
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by kayousterhout <gi...@git.apache.org>.
Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11792529
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +143,34 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    -    </tr>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = <tr>{stageRow(s)}</tr>
    +}
    +
    +private[ui] class FailedStageTable(
    +    stages: Seq[StageInfo],
    +    parent: JobProgressTab,
    +    killEnabled: Boolean = false)
    +  extends StageTableBase(stages, parent, killEnabled) {
    +
    +  override protected lazy val columns = {
    +    <th>Stage Id</th>
    +    if (isFairScheduler) {<th>Pool Name</th>} else {}
    +    <th>Description</th>
    +    <th>Submitted</th>
    +    <th>Duration</th>
    +    <th>Tasks: Succeeded/Total</th>
    +    <th>Shuffle Read</th>
    +    <th>Shuffle Write</th>
    +    <th>Failed Reason</th>
    +  }
    +
    +  override protected def stageRow(s: StageInfo): Seq[Node] = {
    +    val basicColumns = super.stageRow(s)
    +    val failedReason = <td valign="middle">{s.failureReason.getOrElse("")}</td>
    --- End diff --
    
    as above -- failureReason


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11711226
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +145,39 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = {
    +    <tr>
    +      {stageRow(s)}
         </tr>
       }
     }
    +
    +private[ui] class FailedStageTable(stages: Seq[StageInfo],
    +                                   parent: JobProgressTab,
    +                                   killEnabled: Boolean = false)
    +  extends StageTableBase(stages, parent, killEnabled) {
    +
    +  override protected lazy val columns = {
    +    <th>Stage Id</th>
    +    if (isFairScheduler) {<th>Pool Name</th>} else {}
    +    <th>Description</th>
    +    <th>Submitted</th>
    +    <th>Duration</th>
    +    <th>Tasks: Succeeded/Total</th>
    +    <th>Shuffle Read</th>
    +    <th>Shuffle Write</th>
    +    <th>Failed Reason</th>
    +  }
    +
    +  override protected def stageRow(s: StageInfo): Seq[Node] = {
    +    val basicColumns = super.stageRow(s)
    +    val failedReason = {
    +      <td valign="middle">{s.failureReason.get}</td>
    +    }
    --- End diff --
    
    nit: no need to put this in `{ }`. Just put it in 1 line?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862363
  
    Merged build finished. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862859
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14255/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11796306
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Any] = {
    +    {<th>Stage Id</th>} ++
    --- End diff --
    
    The prettiest way to do this may be to actually wrap it in a dummy xml element like:
    ```
    protected def columns: Seq[Node] = {
      // Use dummy element to wrap the list of columns.
      <dummy>
        <th>Stage Id</th>
        {if (isFairScheduler) {...}
        ...
      </dummy>.child
    }
    ```
    
    The problem is that the XML DSL is so evil that I think we need to either go all the way or avoid it altogether (and we're in too deep to easily avoid it now). All these braces just bring up questions that are better left unasked. For instance, `Seq{if (isFairScheduler) {<th>Pool Name</th>} else {}}` actually returns either a Seq(Node) or a Seq(Unit), which makes virtually no sense, but results in the Seq[Any] you're currently returning.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40843652
  
    Hi, @andrewor14 , I just made a commit to address your comments
    
    Yes, I agree that we need to make the page more beautiful when the message is very long...but I'm not expertise in javascript stuffs, maybe we can file an issue and fix in another PR?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11779317
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,33 +27,37 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected lazy val isFairScheduler = parent.isFairScheduler
    +
    +  protected lazy val columns = {
    +    <th>Stage Id</th>
    +    if (isFairScheduler) {<th>Pool Name</th>} else {}
    +    <th>Description</th>
    +    <th>Submitted</th>
    +    <th>Duration</th>
    +    <th>Tasks: Succeeded/Total</th>
    +    <th>Shuffle Read</th>
    +    <th>Shuffle Write</th>
    +  }
     
       def toNodeSeq: Seq[Node] = {
         listener.synchronized {
    -      stageTable(stageRow, stages)
    +      stageTable(renderStageRow, stages)
         }
       }
     
       /** Special table that merges two header cells. */
    -  private def stageTable[T](makeRow: T => Seq[Node], rows: Seq[T]): Seq[Node] = {
    +  protected def stageTable[T](makeRow: T => Seq[Node], rows: Seq[T]): Seq[Node] = {
         <table class="table table-bordered table-striped table-condensed sortable">
           <thead>
    -        <th>Stage Id</th>
    -        {if (isFairScheduler) {<th>Pool Name</th>} else {}}
    -        <th>Description</th>
    -        <th>Submitted</th>
    -        <th>Duration</th>
    -        <th>Tasks: Succeeded/Total</th>
    -        <th>Shuffle Read</th>
    -        <th>Shuffle Write</th>
    +        {columns}
           </thead>
    --- End diff --
    
    another small nit: let's do `<thead>{columns}</thead>` in 1 line. It's more concise


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11796568
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Any] = {
    +    {<th>Stage Id</th>} ++
    --- End diff --
    
    nice~thanks, just fixed it


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40827650
  
    What does it look like when there are no failures? I think it's a little strange to have a "Failure Reason" column when there are no failures. Maybe rename this to "Errors", to be consistent with the corresponding column in the task table?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11797052
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Any] = {
    +    {<th>Stage Id</th>} ++
    --- End diff --
    
    Unlike in the linked source, that still relies on the magic of linking together consecutive lines of XML, unless you put ++ after each `<th>`. I think _that_ would be fine (though you should use `Seq.empty` instead).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40895287
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14269/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40805734
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885285
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11779292
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobProgressPage.scala ---
    @@ -41,10 +41,12 @@ private[ui] class JobProgressPage(parent: JobProgressTab) extends WebUIPage("")
           val now = System.currentTimeMillis
     
           val activeStagesTable =
    -        new StageTable(activeStages.sortBy(_.submissionTime).reverse, parent, parent.killEnabled)
    +        new StageTableBase(activeStages.sortBy(_.submissionTime).reverse,
    +          parent, parent.killEnabled)
           val completedStagesTable =
    -        new StageTable(completedStages.sortBy(_.submissionTime).reverse, parent)
    -      val failedStagesTable = new StageTable(failedStages.sortBy(_.submissionTime).reverse, parent)
    +        new StageTableBase(completedStages.sortBy(_.submissionTime).reverse, parent)
    +      val failedStagesTable = new FailedStageTable(failedStages.sortBy(_.submissionTime).reverse,
    +        parent)
    --- End diff --
    
    super small nit: I would put `new FailedStageTable` on a new line to be consistent with the other tables in lines above


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11794357
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected lazy val isFairScheduler = parent.isFairScheduler
    +
    +  protected lazy val columns = {
    --- End diff --
    
    Also please explicitly state the return type, since its not obvious after going through the XML magic :)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40804254
  
    Hi, @andrewor14 , thanks for the comments, I just addressed them and uploaded the image


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40803663
  
    ![image](https://cloud.githubusercontent.com/assets/678008/2741611/ec3b9740-c6ef-11e3-99dd-1b05f8d071a3.png)



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40894584
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556533
  
    Merged build finished. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40845909
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14245/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862364
  
    
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14254/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40884377
  
    Merged build finished. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556709
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885282
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40845048
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11796787
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Any] = {
    +    {<th>Stage Id</th>} ++
    --- End diff --
    
    Wait, actually I think a better way to do it is to `++ Seq[Node]()` if it's empty, so you don't need the dummy tag. Here's an example:
    
    https://github.com/andrewor14/spark/blob/master/core/src/main/scala/org/apache/spark/ui/jobs/JobProgressPage.scala#L86


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11796793
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Any] = {
    +    {<th>Stage Id</th>} ++
    --- End diff --
    
    Something like
    
    ```
    <th>Stage Id</th> ++
    {if (isFairScheduler) <th>Pool Name</th> else Seq[Node]()} ++
    <th>...</th>
    ```
    
    so it's more consistent with other places


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11794573
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -124,17 +125,16 @@ private[ui] class StageTable(
           case 0 => ""
           case b => Utils.bytesToString(b)
         }
    -
    -    <tr>
    +    {
           <td>{s.stageId}</td>
    -      {if (isFairScheduler) {
    --- End diff --
    
    Are you sure this doesn't cause us to lose the stageId column? I thought the DSL requires that all Scala be preceded by brackets. Same for in headers. (It does seem to be gone in the screenshot you showed.)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11794343
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,36 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected lazy val isFairScheduler = parent.isFairScheduler
    +
    +  protected lazy val columns = {
    --- End diff --
    
    It would probably be best to just make this a def, so FailedStageTable#columns can just append to the list. isFairScheduler should probably also be a def, as checking the volatile variable is almost certainly more expensive than a method call to check a boolean.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40979274
  
    I already merged this - I think it was merged before you removed the comment.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11786735
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +143,34 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    -    </tr>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = <tr>{stageRow(s)}</tr>
    +}
    +
    +private[ui] class FailedStageTable(
    +    stages: Seq[StageInfo],
    +    parent: JobProgressTab,
    +    killEnabled: Boolean = false)
    +  extends StageTableBase(stages, parent, killEnabled) {
    +
    +  override protected lazy val columns = {
    +    <th>Stage Id</th>
    +    if (isFairScheduler) {<th>Pool Name</th>} else {}
    +    <th>Description</th>
    +    <th>Submitted</th>
    +    <th>Duration</th>
    +    <th>Tasks: Succeeded/Total</th>
    +    <th>Shuffle Read</th>
    +    <th>Shuffle Write</th>
    +    <th>Failed Reason</th>
    +  }
    +
    +  override protected def stageRow(s: StageInfo): Seq[Node] = {
    +    val basicColumns = super.stageRow(s)
    +    val failedReason = <td valign="middle">{s.failureReason.get}</td>
    --- End diff --
    
    Sorry, I didn't notice this before, but if for some reason failureReason is not set we will get an obscure exception message for calling None.get. Could you do a `getOrElse` with maybe a default value of `""`?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40845908
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40804102
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40981685
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40661300
  
    Thanks @CodingCat. I haven't had the time to examine this locally. Could you attach a screenshot of what the new page looks like in the mean time?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11711191
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +145,39 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = {
    +    <tr>
    +      {stageRow(s)}
         </tr>
       }
     }
    +
    +private[ui] class FailedStageTable(stages: Seq[StageInfo],
    +                                   parent: JobProgressTab,
    +                                   killEnabled: Boolean = false)
    --- End diff --
    
    Style should be
    
    ```
    class FailedStageTable(
      stage: ...,
      parent: ...
      ...)
    extends ... {
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40884437
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11711167
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +145,39 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = {
    +    <tr>
    +      {stageRow(s)}
         </tr>
    --- End diff --
    
    I would just put these 3 in 1 line


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40559987
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14164/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40981688
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14302/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/421


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40844127
  
    @CodingCat Yes, don't worry about the front-end changes; I will make them myself in another PR.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40882724
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40843113
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40556534
  
    
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14163/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862406
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862332
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40978349
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40894578
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40847681
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14246/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by kayousterhout <gi...@git.apache.org>.
Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11792526
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -143,6 +143,34 @@ private[ui] class StageTable(
           </td>
           <td sorttable_customekey={shuffleReadSortable.toString}>{shuffleRead}</td>
           <td sorttable_customekey={shuffleWriteSortable.toString}>{shuffleWrite}</td>
    -    </tr>
    +    }
    +  }
    +
    +  /** Render an HTML row that represents a stage */
    +  private def renderStageRow(s: StageInfo): Seq[Node] = <tr>{stageRow(s)}</tr>
    +}
    +
    +private[ui] class FailedStageTable(
    +    stages: Seq[StageInfo],
    +    parent: JobProgressTab,
    +    killEnabled: Boolean = false)
    +  extends StageTableBase(stages, parent, killEnabled) {
    +
    +  override protected lazy val columns = {
    +    <th>Stage Id</th>
    +    if (isFairScheduler) {<th>Pool Name</th>} else {}
    +    <th>Description</th>
    +    <th>Submitted</th>
    +    <th>Duration</th>
    +    <th>Tasks: Succeeded/Total</th>
    +    <th>Shuffle Read</th>
    +    <th>Shuffle Write</th>
    +    <th>Failed Reason</th>
    --- End diff --
    
    Can you change this to "Failure Reason"?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40804097
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40895286
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885663
  
    Merged build finished. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40977586
  
    LGTM


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40867809
  
    Hi, @kayousterhout , thanks for the comments, fixed


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40884379
  
    
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14262/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/421#discussion_r11826460
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -27,34 +27,37 @@ import org.apache.spark.ui.UIUtils
     import org.apache.spark.util.Utils
     
     /** Page showing list of all ongoing and recently finished stages */
    -private[ui] class StageTable(
    +private[ui] class StageTableBase(
         stages: Seq[StageInfo],
         parent: JobProgressTab,
         killEnabled: Boolean = false) {
     
       private val basePath = parent.basePath
       private val listener = parent.listener
    -  private lazy val isFairScheduler = parent.isFairScheduler
    +  protected def isFairScheduler = parent.isFairScheduler
    +
    +  protected def columns: Seq[Node] = {
    +    // create dummy element to wrap the columns
    --- End diff --
    
    except this comment is no longer true, right?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885761
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40844772
  
    @andrewor14 , thank you so much for your review, I just fixed the default value issue


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40805737
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14234/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40885762
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14266/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40843096
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40847679
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862858
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862404
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40827434
  
    This is looking good. Thanks for attaching the screenshot. However, I wonder if there's a better way to present it from a UI perspective. Right now when you get a failure the table kinda crams all the other columns to make space for this ugly (but helpful) message. This is an existing problem in the stages page, when one of the tasks fails the task table does the same. Not a big deal, but maybe we should do a front-end fix for it at some point. I think the right way to go is to add some JavaScript to make the exception expandable on click (which doesn't have to be part of this PR).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40862327
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40882735
  
    Hi, @aarondav , thanks, my bad, just address them, attached the screenshot here
    ![image](https://cloud.githubusercontent.com/assets/678008/2749648/ba50534e-c814-11e3-9115-6a16412d7ae0.png)



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40844267
  
    I left one more comment (apologies for leaving the comments in so many separate rounds), but once you fix that I think this is good to go.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-1399: show stage failure reason in UI

Posted by CodingCat <gi...@git.apache.org>.
Github user CodingCat commented on the pull request:

    https://github.com/apache/spark/pull/421#issuecomment-40895834
  
    @andrewor14 @aarondav how about the current one?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---