Fix misspelling.
cut over more tests to AbstractIntegrationTest
Remove redundant wipeIndices().
One too many...
Reenable MockEngineModul as default on TestCluster
Migrate createIndex().
Remove a comma in doc to make example a valid json.

This will help reader to do a hurry up copy-paste test.
Merge pull request #3767 from gtt116/master

Remove a comma in doc to make example a valid json.
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
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
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