LUCENE-8962: Ensure we never flush by ram buffer or doc count in test

This commit is contained in:
Simon Willnauer 2020-06-28 09:38:27 +02:00
parent 584e4d5f3c
commit 3377b09fcb
1 changed files with 2 additions and 0 deletions

View File

@ -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 {