Ngone51 commented on a change in pull request #33028:
URL: https://github.com/apache/spark/pull/33028#discussion_r661074976
##########
File path:
core/src/main/scala/org/apache/spark/deploy/worker/WorkerWatcher.scala
##########
@@ -53,10 +53,9 @@ private[spark] class WorkerWatcher(
private def exitNonZero() =
if (isTesting) {
isShutDown = true
- } else {
- ThreadUtils.awaitResult(Future {
- System.exit(-1)
- }, 5.seconds)
+ } else if (isChildProcessStopping.compareAndSet(false, true)) {
Review comment:
It could prevent but in the case of `StopExecutor` and `Shutdown`, the
executor will exit the JVM anyway. So it doesn't matter.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]