{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11336","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11336/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11336/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11336/events","html_url":"https://github.com/elastic/elasticsearch/pull/11336","id":80641876,"number":11336,"title":"Move index sealing terminology to synced flush","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},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/non-issue","name":"non-issue","color":"cfcfcf"},{"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":2,"created_at":"2015-05-25T19:34:23Z","updated_at":"2015-05-25T19:48:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/11336","html_url":"https://github.com/elastic/elasticsearch/pull/11336","diff_url":"https://github.com/elastic/elasticsearch/pull/11336.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/11336.patch"},"body":"#10032 introduced the notion of sealing an index by marking it with a special read only marker, allowing for a couple of optimization to happen. The most important one was to speed up recoveries of shards where we know nothing has changed since they were online by skipping the file based sync phase. During the implementation we came up with a light notion which achieves the same recovery benefits but without the read only aspects which we dubbed synced flush. The fact that it was light weight and didn't put the index in read only mode, allowed us to do it automatically in the background which has great advantage. However we also felt the need to allow users to manually trigger this operation.\r\n\r\n The implementation at #11179 added the sync flush internal logic and the manual (rest) rest API. The name of the API was modeled after the sealing terminology which may end up being confusing. This commit changes the API name to match the internal synced flush naming, namely `{index}/_flush/synced'.\r\n\r\n  On top of that it contains a couple other changes:\r\n   - Remove all java client API. This feature is not supposed to be called programtically by applications but rather by admins.\r\n   - Improve rest responses making structure similar to other (flush) API\r\n   - Change IndexShard#getOperationsCount to exclude the internal +1 on open shard . it's confusing to get 1 while there are actually no ongoing operations\r\n   - Some minor other clean ups\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/105299084","html_url":"https://github.com/elastic/elasticsearch/pull/11336#issuecomment-105299084","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11336","id":105299084,"user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T19:48:26Z","updated_at":"2015-05-25T19:48:26Z","body":"Docs look great! (two tiny changes)"}}