Repository: spark
Updated Branches:
  refs/heads/master 722aa5f48 -> 689da28a5


[SPARK-8592] [CORE] CoarseGrainedExecutorBackend: Cannot register with driver 
=> NPE

Look detail of this issue at 
[SPARK-8592](https://issues.apache.org/jira/browse/SPARK-8592)

**CoarseGrainedExecutorBackend** should exit when **RegisterExecutor** failed

Author: xuchenCN <[email protected]>

Closes #7110 from xuchenCN/SPARK-8592 and squashes the following commits:

71e0077 [xuchenCN] [SPARK-8592] [CORE] CoarseGrainedExecutorBackend: Cannot 
register with driver => NPE


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/689da28a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/689da28a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/689da28a

Branch: refs/heads/master
Commit: 689da28a53cf720ae607a1a935093612a7001615
Parents: 722aa5f
Author: xuchenCN <[email protected]>
Authored: Tue Jun 30 10:05:51 2015 -0700
Committer: Josh Rosen <[email protected]>
Committed: Tue Jun 30 10:05:51 2015 -0700

----------------------------------------------------------------------
 .../apache/spark/executor/CoarseGrainedExecutorBackend.scala    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/689da28a/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
 
b/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
index f3a26f5..34d4cfd 100644
--- 
a/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
+++ 
b/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
@@ -66,7 +66,10 @@ private[spark] class CoarseGrainedExecutorBackend(
       case Success(msg) => Utils.tryLogNonFatalError {
         Option(self).foreach(_.send(msg)) // msg must be RegisteredExecutor
       }
-      case Failure(e) => logError(s"Cannot register with driver: $driverUrl", 
e)
+      case Failure(e) => {
+        logError(s"Cannot register with driver: $driverUrl", e)
+        System.exit(1)
+      }
     }(ThreadUtils.sameThread)
   }
 


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

Reply via email to