{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/filebeat/issues/93","labels_url":"https://api.github.com/repos/elastic/filebeat/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/elastic/filebeat/issues/93/comments","events_url":"https://api.github.com/repos/elastic/filebeat/issues/93/events","html_url":"https://github.com/elastic/filebeat/issues/93","id":111855794,"number":93,"title":"Cannot reuse the same name for a deleted file","user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/filebeat/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/elastic/filebeat/labels/v1.0.0-rc1","name":"v1.0.0-rc1","color":"eeeeee"},{"url":"https://api.github.com/repos/elastic/filebeat/labels/windows","name":"windows","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"ruflin","id":244900,"avatar_url":"https://avatars.githubusercontent.com/u/244900?v=3","gravatar_id":"","url":"https://api.github.com/users/ruflin","html_url":"https://github.com/ruflin","followers_url":"https://api.github.com/users/ruflin/followers","following_url":"https://api.github.com/users/ruflin/following{/other_user}","gists_url":"https://api.github.com/users/ruflin/gists{/gist_id}","starred_url":"https://api.github.com/users/ruflin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruflin/subscriptions","organizations_url":"https://api.github.com/users/ruflin/orgs","repos_url":"https://api.github.com/users/ruflin/repos","events_url":"https://api.github.com/users/ruflin/events{/privacy}","received_events_url":"https://api.github.com/users/ruflin/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-10-16T15:34:41Z","updated_at":"2015-11-04T10:51:20Z","closed_at":"2015-11-04T10:51:20Z","body":"The system test `test_crawler.py:Test.test_file_disappear_appear` fails on Windows and it is currently skipped. I've looked into it and seems that the test fails for a valid reason.\r\n\r\nHere is the problematic situation:\r\n\r\n * Filebeat has a log file opened\r\n * Another application deletes the log file (e.g. for log rotation). This is allowed by Filebeat because it opens it with the share-delete option.\r\n * The file is deleted but still shows up in the filesystem until all other applications close it. In our case, Filebeat still has the file opened (a harvester for it is still running).\r\n * While in this deleted-but-not-quite state, calling stat on the file returns errors and, more importantly, another file with the same name cannot be created.\r\n\r\nThe test tries to create a file with the same name, so that fails. I'm afraid this situation can appear in common log rotation strategies, therefore the beta4 label."}}