Skip to content

Commit 5499071

Browse files
committed
review comment
1 parent 31f1218 commit 5499071

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ private[spark] class CoarseGrainedExecutorBackend(
149149
* back-end may not want to take the parent process down.
150150
*/
151151
protected def exitExecutor(code: Int, reason: String, throwable: Throwable = null) = {
152-
logError(reason, throwable)
152+
if (throwable == null) {
153+
logError(reason)
154+
} else {
155+
logError(reason, throwable)
156+
}
153157
System.exit(code)
154158
}
155159
}

0 commit comments

Comments
 (0)