OpenSearch/docs/reference/indices
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
..
aliases.asciidoc Aliases: Throw exception if index is null or missing when creating an alias 2014-10-27 14:39:01 -04:00
analyze.asciidoc [DOCS] Multiple doc fixes 2014-03-07 14:24:58 +01:00
clearcache.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
create-index.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
delete-index.asciidoc Added `action.destructive_requires_name` that controls whether wildcard expressions and `_all` is allowed to be used for destructive operat Also the delete index api requires always an index to be specified (either concrete index, alias or wildcard expression) 2014-01-09 11:36:50 +01:00
delete-mapping.asciidoc Make PUT and DELETE consistent for _mapping, _alias and _warmer 2014-01-14 20:02:43 +01:00
flush.asciidoc [ENGINE] Remove full flush / FlushType.NEW_WRITER 2015-02-04 17:38:05 +01:00
get-field-mapping.asciidoc Mappings: Remove support for new indexes using path setting in 2015-02-05 12:44:43 -08:00
get-index.asciidoc Indices API: Added GET Index API 2014-09-11 11:19:21 +01:00
get-mapping.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
get-settings.asciidoc Consistent REST API changes for GETting data 2014-01-14 22:33:52 +01:00
indices-exists.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
open-close.asciidoc Added `action.destructive_requires_name` that controls whether wildcard expressions and `_all` is allowed to be used for destructive operat Also the delete index api requires always an index to be specified (either concrete index, alias or wildcard expression) 2014-01-09 11:36:50 +01:00
optimize.asciidoc Core: Remove ability to run optimize and upgrade async 2015-02-11 11:30:27 -08:00
put-mapping.asciidoc Docs: Fix order for PUT _mapping docs 2014-10-16 18:49:36 +02:00
recovery.asciidoc Recovery: RecoveryState clean up 2015-02-25 17:34:22 +01:00
refresh.asciidoc Rename RobinEngine and friends to InternalEngine 2014-01-13 15:49:10 +01:00
segments.asciidoc Stats: Added verbose option to segments api, with full ram tree as first 2015-01-06 10:04:52 -08:00
shadow-replicas.asciidoc Add shadow replicas for shared filesystems 2015-02-18 15:34:06 -07:00
stats.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
templates.asciidoc Docs: Adds documentation for indices.exists_template 2014-11-25 19:36:01 +01:00
types-exists.asciidoc [DOCS] Removed outdated new/deprecated version notices 2013-09-03 21:28:31 +02:00
update-settings.asciidoc Add warning to settings documentation about setting number_of_replicas on a closed index 2015-02-06 12:09:24 +01:00
upgrade.asciidoc Core: Remove ability to run optimize and upgrade async 2015-02-11 11:30:27 -08:00
warmers.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00