From this book 'Elasticsearch: The Definitive Guide', in updating or creating documents, I have known that if the writing operation will return success only if the primary shard all the replica shards are done successfully.
For example, we have 1 primary and 3 replica shards. If the writing operation in the primary and 2 replica shards succeeds, and fails in the 3rd replica shards.
- How to handle this in ES?
- Is there any retries in the 3rd replica shards?
- If the final writing operation failed, how to roll back the writing operation in primary shard and the 2 replica shards?