Uh oh!
There was an error while loading. Please reload this page.
[SPARK-21235][TESTS] UTest should clear temp results when run case - #18474
[SPARK-21235][TESTS] UTest should clear temp results when run case #18474wangjiaochun wants to merge 1 commit into
Conversation
Signed-off-by: 10087686 <wang.jiaochun@zte.com.cn>
AmplabJenkins
commented
Jun 30, 2017
Can one of the admins verify this patch? |
felixcheung
commented
Jun 30, 2017
hi - I don't think |
jiangxb1987
commented
Jun 30, 2017
We should not need this, because in |
wangjiaochun
commented
Jul 3, 2017
I have run this case many times,the memoryStore temp file will be cleared,but the disk blocks is really not clear. |
jiangxb1987
commented
Jul 3, 2017
Sorry but I can't repro this on my local environment. Could you provide more detail on this? Thanks! |
wangjiaochun
commented
Jul 3, 2017
|
HyukjinKwon
commented
Aug 7, 2017
@wangjiaochun Are you running this on Windows? |
wangjiaochun
commented
Aug 7, 2017
Yes, Running this on Windows7. |
HyukjinKwon
commented
Aug 7, 2017
@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. |
HyukjinKwon
commented
Aug 7, 2017
@wangjiaochun, let's close this if you are unable to explain why this happens in a certain environment. Looks hard to reproduce. |
wangjiaochun
commented
Aug 9, 2017
Thanks,I will resolve all problems. @kiszk |
HyukjinKwon
commented
Aug 9, 2017
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? |
jiangxb1987
commented
Aug 9, 2017
Yea, I agree we should find the root cause why these temp directories are not deleted, this should be a minor issue though. |
kiszk
commented
Sep 8, 2017
@wangjiaochun kindly ping |
Closesapache#13794Closesapache#18474Closesapache#18897Closesapache#18978Closesapache#19152Closesapache#19238Closesapache#19295Closesapache#19334Closesapache#19335Closesapache#19347Closesapache#19236Closesapache#19244Closesapache#19300Closesapache#19315Closesapache#19356Closesapache#15009Closesapache#18253 Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#19348 from HyukjinKwon/stale-prs.
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.