mirror of https://github.com/apache/lucene.git
prevent rolling updates from relying on num of CPUs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1092614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3128a64121
commit
ccd4d4a1e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue