-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-21235][TESTS] UTest should clear temp results when run case #18474
Conversation
Signed-off-by: 10087686 <wang.jiaochun@zte.com.cn>
Can one of the admins verify this patch? |
hi - I don't think |
We should not need this, because in |
I have run this case many times,the memoryStore temp file will be cleared,but the disk blocks is really not clear. |
Sorry but I can't repro this on my local environment. Could you provide more detail on this? Thanks! |
|
@wangjiaochun Are you running this on Windows? |
Yes, Running this on Windows7. |
@wangjiaochun, can you add a small test to verify this? I can run automated test on Windows via AppVeyor and share the results. |
In my Windows10 environment with Intellj, In summary, I can reproduce this problem. In addition to this test case, there are other test cases that leave temp result directory. |
@wangjiaochun, let's close this if you are unable to explain why this happens in a certain environment. Looks hard to reproduce. |
Thanks,I will resolve all problems. @kiszk |
Thanks for reproduction @kiszk. @wangjiaochun, I think the cause should be explained here. I remember I reviewed similar PRs before where the cause was However, what I still don't get is, if my understanding is correct, we are moving all temp directories in shutdown hooks at least. Did I maybe miss something - @jiangxb1987? |
Yea, I agree we should find the root cause why these temp directories are not deleted, this should be a minor issue though. |
@wangjiaochun kindly ping |
Signed-off-by: 10087686 wang.jiaochun@zte.com.cn
What changes were proposed in this pull request?
when run this case encryptionTest("on-disk storage") end, it has temp result not clear
Users...\AppData\Local\Temp\blockmgr-865114ea-8e5c-4b20-9a25-1224cfe5545b\01\test_a3
Users...\AppData\Local\Temp\blockmgr-865114ea-8e5c-4b20-9a25-1224cfe5545b\01\test_a2
Users...\AppData\Local\Temp\blockmgr-865114ea-8e5c-4b20-9a25-1224cfe5545b\01\test_a1
so,I think it's best to clear result file;
(Please fill in changes proposed in this fix)
store.removeBlock("a1")
store.removeBlock("a2")
store.removeBlock("a3")
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Run encryptionTest("on-disk storage")
Please review http://spark.apache.org/contributing.html before opening a pull request.