Skip to content

Commit 0ce918a

Browse files
committed
TEST: Ensure a manual flush always occur (#36188)
The test testLookupSeqNoByIdInLucene fails because it expects if any change should be visible after a flush. However, that flush might be ignored if the waitIfOngoing parameter is false (the default value), and there is an ongoing flush triggered after merge is running. Closes #35823
1 parent a80eff1 commit 0ce918a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3780,7 +3780,7 @@ public void testLookupSeqNoByIdInLucene() throws Exception {
37803780
lookupAndCheck.run();
37813781
}
37823782
if (rarely()) {
3783-
engine.flush();
3783+
engine.flush(false, true);
37843784
lookupAndCheck.run();
37853785
}
37863786
}

0 commit comments

Comments
 (0)