GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/15618
[SPARK-14914][CORE] Fix Resource not closed after using, mostly for unit tests ## What changes were proposed in this pull request? Close `FileStreams`, `ZipFiles` etc to release the resources after using. Not closing the resources will cause IO Exception to be raised while deleting temp files. ## How was this patch tested? Existing tests Closes #12693 You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark SPARK-14914-1 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15618.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 #15618 ---- commit ceb1681620b83e46425d20f20ff5a228c0a8d75b Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-25T03:37:06Z mvn.cmd for windows Helping script for windows to download dependency and start zinc to support incremental building on windows. commit 98ee4ab6a96b3d8ad8acd8dbeb6dedc10523546e Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-25T06:50:59Z Fix file not closed on FileSuite commit ed52ec72fee774e9b8a1bec3183ae4594d758b9f Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-25T07:45:39Z Fix another file closing commit 448508f467c0401f5461d79dadc1454b03210368 Author: Tao LI <t...@microsoft.com> Date: 2016-04-25T07:57:42Z close log data. commit 34078a3facde46f09430baf1a1a5976b1c2d2869 Author: Tao LI <t...@microsoft.com> Date: 2016-04-25T08:01:55Z Close the class loader commit efb7227518e9fdb8c1a35ae2adb3971c9cfc1ac2 Author: Tao LI <t...@microsoft.com> Date: 2016-04-25T08:20:48Z Another file not closed. commit a06bffc02e4d2cd7e723e73102c160c1c57f0915 Author: Tao LI <t...@microsoft.com> Date: 2016-04-25T08:29:16Z Stop to release resources. commit 45262dcc58073a99417b9d1a6c0e24c393716c8f Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-25T08:34:45Z More closing problem commit b3c0c96fb4cbe19344cc220e234c98644aa0efcd Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-25T13:25:42Z Fix the zip file and jar file in RPackageUtilsSuite commit a176adbadfa68cb0819a1e958129c4d96b42b42c Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-26T05:35:35Z Stop ssc in MasterFailureTest commit 35aacd29c4667550a4f870ee521ed185c5f9800c Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-04-26T08:09:04Z Remove accidentally added files commit 9f50128da0660fed97d64b8a5e0d63285dbf93d5 Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-05-03T06:11:12Z Code cleanup with respect to comments commit 55b360e276968eecea970267b0fa438b56e5e703 Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-05-05T03:51:50Z Style fixes commit 91f82b5fac48afefeceadd764ff0e7b61944d875 Author: U-FAREAST\tl <t...@microsoft.com> Date: 2016-05-05T07:29:32Z Minor code cleanup commit f3713d1ff59e5bd45a8a207eaf36ab8e6c285812 Author: hyukjinkwon <gurwls...@gmail.com> Date: 2016-10-25T05:44:15Z ex -> e and indentation ---- --- 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