spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vanzin <...@git.apache.org>
Subject [GitHub] spark pull request: SPARK-9790: [YARN] Expose in WebUI if NodeMana...
Date Fri, 23 Oct 2015 21:33:07 GMT
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8093#discussion_r42916821
  
    --- Diff: core/src/main/scala/org/apache/spark/TaskEndReason.scala ---
    @@ -217,11 +217,14 @@ case class TaskCommitDenied(
      * the task crashed the JVM.
      */
     @DeveloperApi
    -case class ExecutorLostFailure(execId: String, isNormalExit: Boolean = false)
    -  extends TaskFailedReason {
    +case class ExecutorLostFailure(execId: String, isNormalExit: Boolean = false, reason:
    +Option[String]) extends TaskFailedReason {
       override def toErrorString: String = {
         val exitBehavior = if (isNormalExit) "normally" else "abnormally"
    -    s"ExecutorLostFailure (executor ${execId} exited ${exitBehavior})"
    +    s"ExecutorLostFailure (executor ${execId} exited ${exitBehavior})" +
    +    reason.fold(""){
    --- End diff --
    
    Also this line should be indented one level down; I almost missed the `+` on the previous
line because of that.


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

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


Mime
View raw message