-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-5970][core] Register directory created in getOrCreateLocalRootDirs for automatic deletion. #4759
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
|
Can one of the admins verify this patch? |
|
ok to test |
|
Test build #27946 has started for PR 4759 at commit
|
|
I'm pretty sure this is the right move but CC @vanzin as this is closely related to changes he's making as we speak. |
|
The Nevertheless, in the #4747 patch I am seeing more Maybe a better way would be to modify |
|
@foxik I think we can stick to your current fix in this PR. You have a good point about the related change which I'll comment on there. |
|
Test build #27946 has finished for PR 4759 at commit
|
|
Test PASSed. |
|
Ok, I think this might work. But I'd call just I was worried that this might cause shuffle data to be deleted when executors are killed in dynamic allocation mode. But the code path being changed is not used by executors in Yarn mode (nor in Standalone mode after my change), so it all should be fine. |
|
Hm, I was going to say that |
|
@srowen not sure I understand; |
to automatically remove the directory on shutdown.
56feaca to
280450d
Compare
|
You are right, I just modified the patch to use |
|
Test build #27955 has started for PR 4759 at commit
|
|
Test build #27955 has finished for PR 4759 at commit
|
|
Test PASSed. |
|
LGTM. This is a clean simple fix that we three have reviewed a fair bit, so let's do it. |
…Dirs for automatic deletion. As documented in createDirectory, the result of createDirectory is not registered for automatic removal. Currently there are 4 directories left in `/tmp` after just running `pyspark`. Author: Milan Straka <[email protected]> Closes apache#4759 from foxik/remove-tmp-dirs and squashes the following commits: 280450d [Milan Straka] Use createTempDir in getOrCreateLocalRootDirs...
As documented in createDirectory, the result of createDirectory is not registered for automatic removal. Currently there are 4 directories left in
/tmpafter just runningpyspark.