Skip to content

[SPARK-31197][CORE] Shutdown executor once we are done decommissioning#29211

Closed
holdenk wants to merge 20 commits into
apache:masterfrom
holdenk:SPARK-31197-exit-execs-redone
Closed

[SPARK-31197][CORE] Shutdown executor once we are done decommissioning#29211
holdenk wants to merge 20 commits into
apache:masterfrom
holdenk:SPARK-31197-exit-execs-redone

Conversation

@holdenk
Copy link
Copy Markdown
Contributor

@holdenk holdenk commented Jul 23, 2020

What changes were proposed in this pull request?

Exit the executor when it has been asked to decommission and there is nothing left for it to do.

This is a rebase of #28817

Why are the changes needed?

If we want to use decommissioning in Spark's own scale down we should terminate the executor once finished.
Furthermore, in graceful shutdown it makes sense to release resources we no longer need if we've been asked to shutdown by the cluster manager instead of always holding the resources as long as possible.

Does this PR introduce any user-facing change?

The decommissioned executors will exit and the end of decommissioning. This is sort of a user facing change, however decommissioning hasn't been in any releases yet.

How was this patch tested?

I changed the unit test to not send the executor exit message and still wait on the executor exited message.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants