From 518488b0b299ba26d3ad9503c5ef88ff287709a2 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 17 May 2011 01:41:05 +0300 Subject: [PATCH] auto_expand_replicas: [0-auto] can cause data loss when nodes are removed, closes #934. This is caused because of a race condition between when to handle the removed node and move a replica to a primary mode, and when to remove the replica because of the 0-auto setting. --- .idea/projectCodeStyle.xml | 25 +++++++++ .../elasticsearch/cluster/ClusterService.java | 5 ++ .../cluster/routing/RoutingService.java | 56 ++++++++++--------- .../service/InternalClusterService.java | 10 +++- 4 files changed, 69 insertions(+), 27 deletions(-) diff --git a/.idea/projectCodeStyle.xml b/.idea/projectCodeStyle.xml index adcd12690a6..de5584676bd 100644 --- a/.idea/projectCodeStyle.xml +++ b/.idea/projectCodeStyle.xml @@ -16,6 +16,16 @@