{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11975","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11975/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11975/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11975/events","html_url":"https://github.com/elastic/elasticsearch/pull/11975","id":92398695,"number":11975,"title":"Add basic recovery prioritization to GatewayAllocator","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/review","name":"review","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-01T14:27:22Z","updated_at":"2015-07-06T14:30:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/11975","html_url":"https://github.com/elastic/elasticsearch/pull/11975","diff_url":"https://github.com/elastic/elasticsearch/pull/11975.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/11975.patch"},"body":"This commit adds logic to prefer shards with higher priority\r\nor from newer indicse to be allocated first if they are unallocated post API.\r\n\r\nThis commit allows users to set `index.priority` to a non-negative integer to\r\nprioritize index recovery for certain indices. This setting is dynamically updateable\r\nand defaults to `0`. If two indices have the same priority this change takes the creation\r\ndate into account to prioritize shards from newer indices which is important in the time-based\r\nindices usecase.\r\n\r\nCloses #11787"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/118873110","html_url":"https://github.com/elastic/elasticsearch/pull/11975#issuecomment-118873110","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11975","id":118873110,"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-06T14:30:25Z","updated_at":"2015-07-06T14:30:25Z","body":"Talked this through with Simon. LGTM. (I misread the code thinking the test doesn't cover the usage of IndexMetaData.SETTING_PRIORITY  & IndexMetaData.SETTING_CREATION_DATE but it does)"}}