{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8082","labels_url":"https://api.github.com/repos/apache/spark/issues/8082/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8082/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8082/events","html_url":"https://github.com/apache/spark/pull/8082","id":100178517,"number":8082,"title":"[SPARK-9801][Streaming]Check if file exists before deleting temporary files.","user":{"login":"viadea","id":9665750,"avatar_url":"https://avatars.githubusercontent.com/u/9665750?v=3","gravatar_id":"","url":"https://api.github.com/users/viadea","html_url":"https://github.com/viadea","followers_url":"https://api.github.com/users/viadea/followers","following_url":"https://api.github.com/users/viadea/following{/other_user}","gists_url":"https://api.github.com/users/viadea/gists{/gist_id}","starred_url":"https://api.github.com/users/viadea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viadea/subscriptions","organizations_url":"https://api.github.com/users/viadea/orgs","repos_url":"https://api.github.com/users/viadea/repos","events_url":"https://api.github.com/users/viadea/events{/privacy}","received_events_url":"https://api.github.com/users/viadea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-10T21:57:11Z","updated_at":"2015-08-10T22:11:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8082","html_url":"https://github.com/apache/spark/pull/8082","diff_url":"https://github.com/apache/spark/pull/8082.diff","patch_url":"https://github.com/apache/spark/pull/8082.patch"},"body":"Spark streaming deletes the temp file and backup files without checking if they exist or not"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/129630792","html_url":"https://github.com/apache/spark/pull/8082#issuecomment-129630792","issue_url":"https://api.github.com/repos/apache/spark/issues/8082","id":129630792,"user":{"login":"viadea","id":9665750,"avatar_url":"https://avatars.githubusercontent.com/u/9665750?v=3","gravatar_id":"","url":"https://api.github.com/users/viadea","html_url":"https://github.com/viadea","followers_url":"https://api.github.com/users/viadea/followers","following_url":"https://api.github.com/users/viadea/following{/other_user}","gists_url":"https://api.github.com/users/viadea/gists{/gist_id}","starred_url":"https://api.github.com/users/viadea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viadea/subscriptions","organizations_url":"https://api.github.com/users/viadea/orgs","repos_url":"https://api.github.com/users/viadea/repos","events_url":"https://api.github.com/users/viadea/events{/privacy}","received_events_url":"https://api.github.com/users/viadea/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T22:11:26Z","updated_at":"2015-08-10T22:11:26Z","body":"Hi Team,\r\n\r\nI forgot to add one check, I wanted to add the check for backup file also:\r\n            fs.delete(backupFile, true) // just in case it exists\r\nShould I file a new PR or edit this PR?\r\n"}}