You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/06/23 01:01:06 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #33028: [SPARK-35714][FOLLOW-UP][CORE] Use a shared stopping flag for WorkerWatcher to avoid the duplicate System.exit
HyukjinKwon commented on a change in pull request #33028:
URL: https://github.com/apache/spark/pull/33028#discussion_r656681486
##########
File path: core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
##########
@@ -266,22 +266,25 @@ private[spark] class CoarseGrainedExecutorBackend(
* executor exits differently. For e.g. when an executor goes down,
* back-end may not want to take the parent process down.
*/
- protected def exitExecutor(code: Int,
- reason: String,
- throwable: Throwable = null,
- notifyDriver: Boolean = true) = {
- val message = "Executor self-exiting due to : " + reason
- if (throwable != null) {
- logError(message, throwable)
- } else {
- logError(message)
- }
+ protected def exitExecutor(
+ code: Int,
+ reason: String,
+ throwable: Throwable = null,
+ notifyDriver: Boolean = true): Unit = {
Review comment:
```suggestion
protected def exitExecutor(code: Int,
reason: String,
throwable: Throwable = null,
notifyDriver: Boolean = true) = {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org