GitHub user bomeng opened a pull request: https://github.com/apache/spark/pull/13304
[SPARK-15537] [SQL] fix dir delete issue ## What changes were proposed in this pull request? For some of the test cases, e.g. OrcSourceSuite, it will create temp folders and temp files inside them. But after tests finish, the folders are not removed. This will cause lots of temp files created and space occupied, if we keep running the test cases. The reason is dir.delete() won't work if dir is not empty. We need to recursively delete the content before deleting the folder. ## How was this patch tested? Manually checked the temp folder to make sure the temp files were deleted. You can merge this pull request into a Git repository by running: $ git pull https://github.com/bomeng/spark SPARK-15537 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13304.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #13304 ---- commit 878b0cca355b21e84f08e8fc32f195485f1df14a Author: Bo Meng <men...@hotmail.com> Date: 2016-05-25T21:35:28Z fix dir delete issue ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org