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).
This commit is contained in:
Adrien Grand 2015-04-03 16:46:30 +02:00
parent d3b1567f79
commit 24ca482918
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp
} }
void assertNewReplicasWork() throws Exception { void assertNewReplicasWork() throws Exception {
final int numReplicas = randomIntBetween(2, 3); final int numReplicas = randomIntBetween(1, 2);
logger.debug("Creating [{}] nodes for replicas", numReplicas); logger.debug("Creating [{}] nodes for replicas", numReplicas);
internalCluster().startNodesAsync(numReplicas, ImmutableSettings.builder() internalCluster().startNodesAsync(numReplicas, ImmutableSettings.builder()
.put("data.node", true) .put("data.node", true)