-
Notifications
You must be signed in to change notification settings - Fork 29k
SPARK-5841: remove DiskBlockManager shutdown hook on stop #4627
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
After a call to stop, the shutdown hook is redundant, and causes a memory leak.
|
Can one of the admins verify this patch? |
|
LGTM |
|
ok to test |
|
Test build #27565 has started for PR 4627 at commit
|
|
Test build #27565 has finished for PR 4627 at commit
|
|
Test PASSed. |
After a call to stop, the shutdown hook is redundant, and causes a memory leak. Author: Matt Whelan <mwhelan@perka.com> Closes #4627 from MattWhelan/SPARK-5841 and squashes the following commits: d5f5c7f [Matt Whelan] SPARK-5841: remove DiskBlockManager shutdown hook on stop (cherry picked from commit bb05982) Signed-off-by: Sean Owen <sowen@cloudera.com>
|
It looks like @srowen @MattWhelan Can you fix this or file a JIRA? |
|
Ah, how did you trigger that BTW? Yes I will help get it patched. I imagine the stop logic must be factored into a method called both by the hook and by stop, which can still unregister the hook first. |
|
I saw it during shutdown from a failed Jenkins test run: https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-Maven-pre-YARN/hadoop.version=1.0.4,label=centos/1616/console |
|
Kinda weird that it would pass sometimes and fail others. I'll submit a fix tomorrow. |
|
@JoshRosen should we revert this in 1.3 then? I might create a release candidate soon to kick off community testing. |
|
@pwendell I suppose we could revert. A bandaid patch would be to just wrap this in a try block and ignore exceptions thrown when removing the hook (see also: |
|
@pwendell @JoshRosen @MattWhelan Let me propose a 'real' fix I think. This should be possible to make correct with a few more lines of code. |
After a call to stop, the shutdown hook is redundant, and causes a
memory leak.