Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4753,6 +4753,9 @@ public void testShouldPeriodicallyFlush() throws Exception {
}

public void testShouldPeriodicallyFlushAfterMerge() throws Exception {
engine.close();
// Do not use MockRandomMergePolicy as it can cause a force merge performing two merges.
engine = createEngine(copy(engine.config(), newMergePolicy(random(), false)));
assertThat("Empty engine does not need flushing", engine.shouldPeriodicallyFlush(), equalTo(false));
ParsedDocument doc =
testParsedDocument(Integer.toString(0), null, testDocumentWithTextField(), SOURCE, null);
Expand Down