{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10775","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10775/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10775/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10775/events","html_url":"https://github.com/elastic/elasticsearch/pull/10775","id":70657637,"number":10775,"title":"use sync id when recovering","user":{"login":"brwe","id":4320215,"avatar_url":"https://avatars.githubusercontent.com/u/4320215?v=3","gravatar_id":"","url":"https://api.github.com/users/brwe","html_url":"https://github.com/brwe","followers_url":"https://api.github.com/users/brwe/followers","following_url":"https://api.github.com/users/brwe/following{/other_user}","gists_url":"https://api.github.com/users/brwe/gists{/gist_id}","starred_url":"https://api.github.com/users/brwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brwe/subscriptions","organizations_url":"https://api.github.com/users/brwe/orgs","repos_url":"https://api.github.com/users/brwe/repos","events_url":"https://api.github.com/users/brwe/events{/privacy}","received_events_url":"https://api.github.com/users/brwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-24T10:54:10Z","updated_at":"2015-04-29T09:14:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/10775","html_url":"https://github.com/elastic/elasticsearch/pull/10775","diff_url":"https://github.com/elastic/elasticsearch/pull/10775.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/10775.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/97365421","html_url":"https://github.com/elastic/elasticsearch/pull/10775#issuecomment-97365421","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10775","id":97365421,"user":{"login":"brwe","id":4320215,"avatar_url":"https://avatars.githubusercontent.com/u/4320215?v=3","gravatar_id":"","url":"https://api.github.com/users/brwe","html_url":"https://github.com/brwe","followers_url":"https://api.github.com/users/brwe/followers","following_url":"https://api.github.com/users/brwe/following{/other_user}","gists_url":"https://api.github.com/users/brwe/gists{/gist_id}","starred_url":"https://api.github.com/users/brwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brwe/subscriptions","organizations_url":"https://api.github.com/users/brwe/orgs","repos_url":"https://api.github.com/users/brwe/repos","events_url":"https://api.github.com/users/brwe/events{/privacy}","received_events_url":"https://api.github.com/users/brwe/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T09:14:56Z","updated_at":"2015-04-29T09:14:56Z","body":"Thanks for the review! I addressed all comments now. I found that GatewayAllocator has some heuristic built in that checks how much of a shard on a node coincides with the primary before assigning replicas and added a check for sync ids there as well. Let me know if that makes sense."}}