Suppose I have a cluster with nodes N1 and N2 hosting index I1 with one primary shard S1 and one replica R1.
The scenario is as follows:
- Shutdown node N2
- Launch new, fresh node N3
- Wait until ES creates R3 on S3
- Boot N2.
No we have a scenario where I1 has two replicas instead of one.
- Will ES be smart enough to discard redundant replica?
- What happens if N2 comes back while ES is still in the process of copying S1 to R3? - Will it abort copying and use R2?
I'm talking about ES 2.x. Answers regarding 5.x are welcome as well.