|
106 | 106 | import java.util.concurrent.atomic.AtomicInteger;
|
107 | 107 |
|
108 | 108 | import static com.carrotsearch.randomizedtesting.RandomizedTest.between;
|
| 109 | +import static com.carrotsearch.randomizedtesting.RandomizedTest.frequently; |
109 | 110 | import static com.carrotsearch.randomizedtesting.RandomizedTest.randomBoolean;
|
110 | 111 | import static junit.framework.Assert.fail;
|
111 | 112 | import static org.apache.lucene.util.LuceneTestCase.TEST_NIGHTLY;
|
@@ -293,12 +294,13 @@ public InternalTestCluster(long clusterSeed,
|
293 | 294 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_SMALL_FILE_STREAMS, RandomInts.randomIntBetween(random, 10, 15));
|
294 | 295 | builder.put(ThrottlingAllocationDecider.CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES, RandomInts.randomIntBetween(random, 5, 10));
|
295 | 296 | builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 10, 25))); // more shared - we need to retry more often
|
296 |
| - } else if (random.nextBoolean()) { |
| 297 | + } else if (frequently()) { |
297 | 298 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_STREAMS, RandomInts.randomIntBetween(random, 3, 6));
|
298 | 299 | builder.put(RecoverySettings.INDICES_RECOVERY_CONCURRENT_SMALL_FILE_STREAMS, RandomInts.randomIntBetween(random, 3, 6));
|
299 | 300 | builder.put(ThrottlingAllocationDecider.CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES, RandomInts.randomIntBetween(random, 2, 5));
|
300 |
| - builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 20, 100))); |
301 | 301 | }
|
| 302 | + // always reduce this - it can make tests really slow |
| 303 | + builder.put(RecoverySettings.INDICES_RECOVERY_RETRY_DELAY, TimeValue.timeValueMillis(RandomInts.randomIntBetween(random, 20, 50))); |
302 | 304 | defaultSettings = builder.build();
|
303 | 305 | executor = EsExecutors.newCached(0, TimeUnit.SECONDS, EsExecutors.daemonThreadFactory("test_" + clusterName));
|
304 | 306 | this.hasFilterCache = random.nextBoolean();
|
|
0 commit comments