Ngone51 commented on a change in pull request #29817:
URL: https://github.com/apache/spark/pull/29817#discussion_r502911491
##########
File path: core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala
##########
@@ -668,8 +672,14 @@ private[deploy] class Worker(
finishedApps += id
maybeCleanupApplication(id)
- case WorkerDecommission(_, _) =>
+ case DecommissionWorker =>
+ decommissionSelf()
+
+ case WorkerSigPWRReceived =>
decommissionSelf()
+ // Tell the Master that we are starting decommissioning
+ // so it stops trying to launch executor/driver on us
+ sendToMaster(WorkerDecommissioning(workerId, self))
Review comment:
I added the param previously but removed it later in order to keep
`decommissionSelf` unchanged according to the comment:
https://github.com/apache/spark/pull/29722#discussion_r487855223
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]