Tests: Fix static bwc replicas at 1
This commit is contained in:
parent
f687377e2f
commit
178f650552
|
@ -106,7 +106,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
||||||
}
|
}
|
||||||
|
|
||||||
void setupCluster() throws Exception {
|
void setupCluster() throws Exception {
|
||||||
ListenableFuture<List<String>> replicas = internalCluster().startNodesAsync(2); // for replicas
|
ListenableFuture<List<String>> replicas = internalCluster().startNodesAsync(1); // for replicas
|
||||||
|
|
||||||
Path dataDir = newTempDirPath(LifecycleScope.SUITE);
|
Path dataDir = newTempDirPath(LifecycleScope.SUITE);
|
||||||
ImmutableSettings.Builder nodeSettings = ImmutableSettings.builder()
|
ImmutableSettings.Builder nodeSettings = ImmutableSettings.builder()
|
||||||
|
@ -300,7 +300,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
||||||
}
|
}
|
||||||
|
|
||||||
void assertNewReplicasWork(String indexName) throws Exception {
|
void assertNewReplicasWork(String indexName) throws Exception {
|
||||||
final int numReplicas = randomIntBetween(1, 2);
|
final int numReplicas = 1;
|
||||||
final long startTime = System.currentTimeMillis();
|
final long startTime = System.currentTimeMillis();
|
||||||
logger.debug("--> creating [{}] replicas for index [{}]", numReplicas, indexName);
|
logger.debug("--> creating [{}] replicas for index [{}]", numReplicas, indexName);
|
||||||
assertAcked(client().admin().indices().prepareUpdateSettings(indexName).setSettings(ImmutableSettings.builder()
|
assertAcked(client().admin().indices().prepareUpdateSettings(indexName).setSettings(ImmutableSettings.builder()
|
||||||
|
|
Loading…
Reference in New Issue