elasticsearch/docs/reference
Boaz Leskes 3e32dd985a Recovery: RecoveryState clean up
To support the `_recovery` API, the recovery process keeps track of current progress in a class called RecoveryState. This class currently have some issues, mostly around concurrency (see #6644 ). This PR cleans it up as well as other issues around it:

- Make the Index subsection API cleaner:
- remove redundant information - all calculation is done based on the underlying file map
- clearer definition of what is what: total files, vs reused files (local files that match the source) vs recovered files (copied over). % based progress is reported based on recovered files only.
- cleaned up json response to match other API (sadly this breaks the structure). We now properly report human values for dates and other units.
- Add more robust unit testing
- Detail flag was passed along as state (it's now a ToXContent param)
- State lookup during reporting is now always done via the IndexShard , no more fall backs to many other classes.
- Cleanup APIs around time and move the little computations to the state class as opposed to doing them out of the API

I also improved error messages out of the REST testing infra for things I run into.

Closes #6644
Closes #9811
2015-02-25 17:34:22 +01:00
..
analysis Docs: Update pattern-replace-charfilter.asciidoc 2015-01-29 20:24:08 +01:00
cat API: add pending tasks count to cluster health 2015-02-25 14:58:44 +01:00
cluster API: add pending tasks count to cluster health 2015-02-25 14:58:44 +01:00
docs Mappings: Remove `index_analyzer` setting to simplify analyzer logic 2015-01-28 13:43:15 -08:00
images [docs] add 2d vis for decay functions and parameters 2014-11-10 10:56:41 +01:00
index-modules Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
indices Recovery: RecoveryState clean up 2015-02-25 17:34:22 +01:00
mapping Docs: Document that the fielddata loading defaults to eager on the _parent field. 2015-02-22 23:15:59 +01:00
migration Update migrate_2_0.asciidoc 2015-02-25 14:13:25 +01:00
modules Snapshot/Restore: add ability to retrieve currently running snapshots 2015-02-25 11:06:32 -05:00
query-dsl Remove Triple Negative! 2015-02-23 20:09:05 +01:00
search [DOCS] added a note for the default shard_size value 2015-02-25 11:00:55 +00:00
setup Allow configuration of the GC log file via an environment variable 2015-02-12 17:07:57 +01:00
testing Tests: Remove global shared cluster 2015-02-22 22:04:22 -08:00
analysis.asciidoc
api-conventions.asciidoc Update api-conventions.asciidoc 2015-01-16 14:26:50 +01:00
cat.asciidoc [TEST] Add missing docs and tests for '_cat/segments' 2015-01-09 12:29:11 +01:00
cluster.asciidoc [DOCS] Fix HTTP endpoints after stats API changes 2014-01-09 11:30:28 +01:00
docs.asciidoc Bulk UDP: Removal. 2014-09-11 09:52:09 +02:00
getting-started.asciidoc Docs: Change "There are few concepts" to "There are a few concepts" 2015-01-21 10:33:33 +01:00
glossary.asciidoc
index-modules.asciidoc Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
index.asciidoc Updated latest version in docs 2015-02-11 19:25:10 +01:00
indices.asciidoc Add shadow replicas for shared filesystems 2015-02-18 15:34:06 -07:00
mapping.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
modules.asciidoc [DOCS] Fixed link to tribe.asciidoc 2014-01-13 22:01:12 +01:00
query-dsl.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
search.asciidoc Search Exists API: Checks if any matching documents exist for a given query 2014-07-31 15:42:30 -04:00
setup.asciidoc Update setup.asciidoc 2014-12-30 17:40:51 +01:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00