{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12693","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12693/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12693/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12693/events","html_url":"https://github.com/apache/spark/pull/12693","id":151067758,"number":12693,"title":"[SPARK-14914] Fix Resource not closed after using, mostly for unit tests","user":{"login":"taoli91","id":18526063,"avatar_url":"https://avatars.githubusercontent.com/u/18526063?v=3","gravatar_id":"","url":"https://api.github.com/users/taoli91","html_url":"https://github.com/taoli91","followers_url":"https://api.github.com/users/taoli91/followers","following_url":"https://api.github.com/users/taoli91/following{/other_user}","gists_url":"https://api.github.com/users/taoli91/gists{/gist_id}","starred_url":"https://api.github.com/users/taoli91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taoli91/subscriptions","organizations_url":"https://api.github.com/users/taoli91/orgs","repos_url":"https://api.github.com/users/taoli91/repos","events_url":"https://api.github.com/users/taoli91/events{/privacy}","received_events_url":"https://api.github.com/users/taoli91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-26T07:54:55Z","updated_at":"2016-05-10T06:52:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12693","html_url":"https://github.com/apache/spark/pull/12693","diff_url":"https://github.com/apache/spark/pull/12693.diff","patch_url":"https://github.com/apache/spark/pull/12693.patch"},"body":"## What changes were proposed in this pull request?\r\nClose `FileStream`s, `ZipFile`s etc to release the resources after using. Not closing the resources will cause IO Exception to be raised while deleting temp files. \r\n\r\n## How was this patch tested?\r\nRun unit test on both windows and Linux. Note that this fix can't resolve all the problem of Unit tests on Windows. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/218073420","html_url":"https://github.com/apache/spark/pull/12693#issuecomment-218073420","issue_url":"https://api.github.com/repos/apache/spark/issues/12693","id":218073420,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T06:52:16Z","updated_at":"2016-05-10T06:52:16Z","body":"**[Test build #58206 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58206/consoleFull)** for PR 12693 at commit [`3ae2396`](https://github.com/apache/spark/commit/3ae2396f146c382e9ec3b45a269cd3b1d2970d43).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}