srowen commented on a change in pull request #26315: [SPARK-29152][CORE]
Executor Plugin shutdown when dynamic allocation is ena…
URL: https://github.com/apache/spark/pull/26315#discussion_r344654951
##########
File path: core/src/main/scala/org/apache/spark/executor/Executor.scala
##########
@@ -65,6 +65,12 @@ private[spark] class Executor(
logInfo(s"Starting executor ID $executorId on host $executorHostname")
+ @volatile private var executorShutdown = false
+ ShutdownHookManager.addShutdownHook(
+ () => if (!executorShutdown) {
Review comment:
No, because stop() checks it.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]