From 3377b09fcbf46315ac64350ab259a45b1ec2889c Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Sun, 28 Jun 2020 09:38:27 +0200 Subject: [PATCH] LUCENE-8962: Ensure we never flush by ram buffer or doc count in test --- .../org/apache/lucene/index/TestIndexWriterMergePolicy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterMergePolicy.java index 12eeb9dc030..f7f37d05310 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterMergePolicy.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterMergePolicy.java @@ -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 {