소스 검색

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).
Adrien Grand 10 년 전
부모
커밋
24ca482918
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java

+ 1 - 1
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)