testCorruptionOnNetworkLayerFinalizingRecovery should keep on trying to assign replicas

In rare cases it can reach the limit set by index.allocation.max_retries
This commit is contained in:
Boaz Leskes 2016-05-30 21:37:34 +02:00
parent f74a78940c
commit 38bee27b11

View File

@ -332,6 +332,7 @@ public class CorruptedFileIT extends ESIntegTestCase {
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1) .put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
.put("index.routing.allocation.include._name", primariesNode.getNode().getName()) .put("index.routing.allocation.include._name", primariesNode.getNode().getName())
.put(EnableAllocationDecider.INDEX_ROUTING_REBALANCE_ENABLE_SETTING.getKey(), EnableAllocationDecider.Rebalance.NONE) .put(EnableAllocationDecider.INDEX_ROUTING_REBALANCE_ENABLE_SETTING.getKey(), EnableAllocationDecider.Rebalance.NONE)
.put("index.allocation.max_retries", Integer.MAX_VALUE) // keep on retrying
)); ));
ensureGreen(); // allocated with empty commit ensureGreen(); // allocated with empty commit