[TEST] Re-add rebalance disable setting in RecoveryFromGatewayTests

This commit is contained in:
Lee Hinman 2015-01-12 14:20:02 +01:00
parent 052645903a
commit 6b24921bd4
1 changed files with 3 additions and 1 deletions

View File

@ -354,7 +354,9 @@ public class RecoveryFromGatewayTests extends ElasticsearchIntegrationTest {
// prevent any rebalance actions during the peer recovery
// if we run into a relocation the reuse count will be 0 and this fails the test. We are testing here if
// we reuse the files on disk after full restarts for replicas.
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder().put(indexSettings())));
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
.put(indexSettings())
.put(EnableAllocationDecider.INDEX_ROUTING_REBALANCE_ENABLE, EnableAllocationDecider.Rebalance.NONE)));
ensureGreen();
logger.info("--> indexing docs");
for (int i = 0; i < 1000; i++) {