Test: RecoveryFromGatewayTests.testReusePeerRecovery - increase concurrent recoveries
To speed up the test and prevent ensureGreen() from timing out.
This commit is contained in:
parent
c2ec463cdb
commit
f5923403a1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue