mirror of https://github.com/apache/lucene.git
LUCENE-8962: Ensure we never flush by ram buffer or doc count in test
This commit is contained in:
parent
584e4d5f3c
commit
3377b09fcb
|
@ -377,6 +377,8 @@ public class TestIndexWriterMergePolicy extends LuceneTestCase {
|
|||
try (IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig()
|
||||
.setMergePolicy(MERGE_ON_COMMIT_POLICY).setMaxCommitMergeWaitMillis(30 * 1000)
|
||||
.setSoftDeletesField("soft_delete")
|
||||
.setMaxBufferedDocs(Integer.MAX_VALUE)
|
||||
.setRAMBufferSizeMB(100)
|
||||
.setMergeScheduler(new ConcurrentMergeScheduler())) {
|
||||
@Override
|
||||
protected void merge(MergePolicy.OneMerge merge) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue