[TEST] now that we check early if we are corrupted this can be run with many nodes
This commit is contained in:
parent
65c646b01d
commit
6b63ea49c2
|
@ -517,8 +517,6 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
|
||||||
public void testReplicaCorruption() throws Exception {
|
public void testReplicaCorruption() throws Exception {
|
||||||
int numDocs = scaledRandomIntBetween(100, 1000);
|
int numDocs = scaledRandomIntBetween(100, 1000);
|
||||||
internalCluster().ensureAtLeastNumDataNodes(2);
|
internalCluster().ensureAtLeastNumDataNodes(2);
|
||||||
// we rely on the test to have replicas on all nodes, make sure there are too many to time out
|
|
||||||
internalCluster().ensureAtMostNumDataNodes(4);
|
|
||||||
|
|
||||||
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
|
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
|
||||||
.put(GatewayAllocator.INDEX_RECOVERY_INITIAL_SHARDS, "one")
|
.put(GatewayAllocator.INDEX_RECOVERY_INITIAL_SHARDS, "one")
|
||||||
|
|
Loading…
Reference in New Issue