diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java b/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java index 859b46277b0..b8fd87d98ca 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java @@ -938,7 +938,7 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 2000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; Path root = createTempDir(); int refreshEveryNumDocs = 100; @@ -1023,7 +1023,7 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 2000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; Path root = createTempDir(); int refreshEveryNumDocs = 100; @@ -1199,9 +1199,10 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(3000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; int refreshEveryNumDocs = 100; + int commitCloseNumDocs = 1000; for(int i=0;i