Skip to content

Apache Lucene open-source search software

prevent rolling updates from relying on num of CPUs

Simon Willnauerccd4d4a1e15e
diff --git a/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java b/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
index 3d89b55f6b8..46689a202c7 100644
--- a/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
+++ b/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
@@ -84,7 +84,7 @@ public class TestRollingUpdates extends LuceneTestCase {
TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMaxBufferedDocs(2));
final int SIZE = 200 * RANDOM_MULTIPLIER;
final int numUpdates = (int) (SIZE * (2 + random.nextDouble()));
- int numThreads = 3 + random.nextInt(Runtime.getRuntime().availableProcessors());
+ int numThreads = 3 + random.nextInt(12);
IndexingThread[] threads = new IndexingThread[numThreads];
for (int i = 0; i < numThreads; i++) {
threads[i] = new IndexingThread(docs, w, numUpdates);