Test: RecoveryFromGatewayTests.testReusePeerRecovery - increase concurrent recoveries

To speed up the test and prevent ensureGreen() from timing out.
This commit is contained in:
Boaz Leskes 2015-03-23 21:58:44 +01:00
parent c2ec463cdb
commit f5923403a1
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import org.elasticsearch.action.admin.indices.recovery.ShardRecoveryResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider;
import org.elasticsearch.cluster.routing.allocation.decider.ThrottlingAllocationDecider;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentFactory;
@ -348,6 +349,7 @@ public class RecoveryFromGatewayTests extends ElasticsearchIntegrationTest {
.put("action.admin.cluster.node.shutdown.delay", "10ms")
.put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, false)
.put("gateway.recover_after_nodes", 4)
.put(ThrottlingAllocationDecider.CLUSTER_ROUTING_ALLOCATION_CONCURRENT_RECOVERIES, 4)
.put(MockDirectoryHelper.CRASH_INDEX, false).build();
internalCluster().startNodesAsync(4, settings).get();