Update Operation might hang (rarely) when retrying on invalid shard state
The retry logic when failing does not reset the operation started flag...
closes #3769
improve search while relocation
- add verification phase at the end of the test
- add explicit test for 0 replicas and 1 replica
Moved RecoverAfterNodesTests to inherit from AbstractIntegrationTest
Introduce internal post recovery state
Introduce a new internal, index shard level, post recovery state, where the shard moves to when its done with recovery. The shard will now move to started only once the cluster state with its respective cluster state level state is started.

This change allow to have more fine grained control over when to allow reads on a shard, resolving potential refresh temporal visibility aspects while indexing and issuign a refresh. By only allowing reads on started shards, and making sure we refresh right before we move to started
add origin to failure message
Acquire ReadLock before reading SegmentInfos in RobinEngine

Before reading segmentinfos we should aquire the read lock to prevent
reading the segment infos on an already closed robin engine.
add awaitfix on search while relocation with 0 replicas
Added test for DateHistogram#factor

DateHistogramFacets can be used on fields that store dates in a numeric
(long) field using different resolutions like seconds instead of
milliseconds. This commit adds a test that checks if the factor is
applied correctly to scale it up to milliseconds.
add assert to make sure we fix NamedAnalyzer when upgrading to Lucene 4.5
[TEST] The get_mapping change in format is in master, not 0.90.*
[TEST] Fixed the delete_template test so that it works for 0.90.*
[API] formatting issues
Improve EngineSearcher tracking

Currently we fail tests is any searcher reference is pending. Yet,
on a slow machine the freeContext calls that are async could still be
in flight so if there are pending searchers we wait for a bit to make
sure we don't fail if a freeContext call is in flight.
The MockEngine now also contains the stack trace of the first close call
if a searcher is closed twice.
fix to compile under 1.6
[TEST] get_source not supported before 0.90.1
[TEST] single alias APIs not supported before 0.90.1
Introduced an index UUID which is added to the index's settings upon creation. Used that UUID to verify old and delayed shard started/failed events are not applied to newer indexes with the same name.

Also, exceptions while processing batched events do not stop the rest of the events from being processed.

Closes #3778
[TEST] In the open indices test, wait for yellow after opening
Add more debug info to SimpleDeleteMappingTests
Added path to exist, supporting optional "type" part

Since the type is an optional part, there needs to be a path that can be used without it.