Skip to content

Apache Lucene open-source search software

scale back how many docs the test runs to try to avoid OOME

Michael McCandless4eec465c3724
diff --git a/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java b/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
index 8fbfa325215..597d6c7a719 100644
--- a/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
+++ b/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
@@ -42,10 +42,13 @@ public class TestRollingUpdates extends LuceneTestCase {
}
final IndexWriter w = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)));
- final int SIZE = atLeast(TEST_NIGHTLY ? 100 : 20);
+ final int SIZE = atLeast(20);
int id = 0;
IndexReader r = null;
final int numUpdates = (int) (SIZE * (2+random.nextDouble()));
+ if (VERBOSE) {
+ System.out.println("TEST: numUpdates=" + numUpdates);
+ }
for(int docIter=0;docIter<numUpdates;docIter++) {
final Document doc = docs.nextDoc();
final String myID = ""+id;