{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11945","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11945/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11945/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11945/events","html_url":"https://github.com/elastic/elasticsearch/pull/11945","id":92100915,"number":11945,"title":"Allow shards to be allocated if leftover shard from different index exists.","user":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/resiliency","name":"resiliency","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T13:57:01Z","updated_at":"2015-07-02T10:06:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/11945","html_url":"https://github.com/elastic/elasticsearch/pull/11945","diff_url":"https://github.com/elastic/elasticsearch/pull/11945.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/11945.patch"},"body":"If an index name is reused but a leftover shard still exists on any node\r\nwe fail repeatedly to allocate the shard since we now check the index UUID\r\nbefore reusing data. This commit allows to recover even if there is such a\r\nleftover shard by trying to archive the shard into a seperate directory.\r\n\r\nCloses #10677"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/117988106","html_url":"https://github.com/elastic/elasticsearch/pull/11945#issuecomment-117988106","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11945","id":117988106,"user":{"login":"bleskes","id":1006375,"avatar_url":"https://avatars.githubusercontent.com/u/1006375?v=3","gravatar_id":"","url":"https://api.github.com/users/bleskes","html_url":"https://github.com/bleskes","followers_url":"https://api.github.com/users/bleskes/followers","following_url":"https://api.github.com/users/bleskes/following{/other_user}","gists_url":"https://api.github.com/users/bleskes/gists{/gist_id}","starred_url":"https://api.github.com/users/bleskes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleskes/subscriptions","organizations_url":"https://api.github.com/users/bleskes/orgs","repos_url":"https://api.github.com/users/bleskes/repos","events_url":"https://api.github.com/users/bleskes/events{/privacy}","received_events_url":"https://api.github.com/users/bleskes/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T10:06:08Z","updated_at":"2015-07-02T10:06:08Z","body":"++ to maintain old behavior and clean it up for now.\n\n> On 02 Jul 2015, at 11:53, Simon Willnauer <notifications@github.com> wrote:\n> \n> you are right, I think the simplest solution is to just delete the stuff there and be done with it. its such a conrner case I don't want to overdesign for cornercases and bogus like this.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n\n"}}