|
116 | 116 | import java.util.concurrent.atomic.AtomicInteger;
|
117 | 117 |
|
118 | 118 | import static com.carrotsearch.randomizedtesting.RandomizedTest.between;
|
| 119 | +import static com.carrotsearch.randomizedtesting.RandomizedTest.frequently; |
119 | 120 | import static com.carrotsearch.randomizedtesting.RandomizedTest.randomBoolean;
|
120 | 121 | import static junit.framework.Assert.fail;
|
121 | 122 | import static org.apache.lucene.util.LuceneTestCase.TEST_NIGHTLY;
|
@@ -304,12 +305,13 @@ public InternalTestCluster(long clusterSeed,
|
304 | 305 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_SMALL_FILE_STREAMS, RandomInts.randomIntBetween(random, 10, 15));
|
305 | 306 | builder.put(ThrottlingAllocationDecider.CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES, RandomInts.randomIntBetween(random, 5, 10));
|
306 | 307 | builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 10, 25))); // more shared - we need to retry more often
|
307 |
| - } else if (random.nextBoolean()) { |
| 308 | + } else if (frequently()) { |
308 | 309 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_STREAMS, RandomInts.randomIntBetween(random, 3, 6));
|
309 | 310 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_SMALL_FILE_STREAMS, RandomInts.randomIntBetween(random, 3, 6));
|
310 | 311 | builder.put(ThrottlingAllocationDecider.CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES, RandomInts.randomIntBetween(random, 2, 5));
|
311 |
| - builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 20, 100))); |
312 | 312 | }
|
| 313 | + // always reduce this - it can make tests really slow |
| 314 | + builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 20, 50))); |
313 | 315 | defaultSettings = builder.build();
|
314 | 316 | executor = EsExecutors.newCached(0, TimeUnit.SECONDS, EsExecutors.daemonThreadFactory("test_" + clusterName));
|
315 | 317 | this.hasFilterCache = random.nextBoolean();
|
|
0 commit comments