-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-29152][2.4][CORE] Executor Plugin shutdown when dynamic allocation is enabled #26841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @vanzin |
|
ok to test |
|
Test build #115134 has finished for PR 26841 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…tion is enabled ### What changes were proposed in this pull request? Added `shutdownHook` for shutdown method of executor plugin. This will ensure that shutdown method will be called always. ### Why are the changes needed? Whenever executors are not going down gracefully, i.e getting killed due to idle time or getting killed forcefully, shutdown method of executors plugin is not getting called. Shutdown method can be used to release any resources that plugin has acquired during its initialisation. So its important to make sure that every time a executor goes down shutdown method of plugin gets called. ### Does this PR introduce any user-facing change? No ### How was this patch tested? Tested Manually Closes #26841 from iRakson/SPARK-29152_2.4. Authored-by: root1 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
|
Hi, All. I'm testing this PR on Jenkins Maven job because this seems to have a side effect. |
|
I reproduced the same failure by triggerring Maven PR builder on Also, I'm testing the result about reverting this, @iRakson . |
|
In #26900 , I verified that the Maven Jenkins is recovered after reverting this. |
|
@iRakson Could you make a PR once more with |
What changes were proposed in this pull request?
Added
shutdownHookfor shutdown method of executor plugin. This will ensure that shutdown method will be called always.Why are the changes needed?
Whenever executors are not going down gracefully, i.e getting killed due to idle time or getting killed forcefully, shutdown method of executors plugin is not getting called. Shutdown method can be used to release any resources that plugin has acquired during its initialisation. So its important to make sure that every time a executor goes down shutdown method of plugin gets called.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Tested Manually