From 24ca482918e383ef6ec1fcb69b109dbdafa4ed3b Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 3 Apr 2015 16:46:30 +0200 Subject: [PATCH] Tests: Make OldIndexBackwardsCompatibilityTests copy to fewer replicas. We recently increased the size of bw indexes and backward compatibility tests are now taking more time so it makes sense to ask them to do a bit less. This commit changes the number of replicas we try to copy primaries to from (2 or 3) to (1 or 2). --- .../bwcompat/OldIndexBackwardsCompatibilityTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java b/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java index 84d904f01c4..5e7a314b08f 100644 --- a/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java +++ b/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java @@ -198,7 +198,7 @@ public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp } void assertNewReplicasWork() throws Exception { - final int numReplicas = randomIntBetween(2, 3); + final int numReplicas = randomIntBetween(1, 2); logger.debug("Creating [{}] nodes for replicas", numReplicas); internalCluster().startNodesAsync(numReplicas, ImmutableSettings.builder() .put("data.node", true)