Skip to content

Commit 878a372

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 c777ab8 commit 878a372

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
@@ -3898,7 +3898,7 @@ public void testLookupSeqNoByIdInLucene() throws Exception {
38983898
lookupAndCheck.run();
38993899
}
39003900
if (rarely()) {
3901-
engine.flush();
3901+
engine.flush(false, true);
39023902
lookupAndCheck.run();
39033903
}
39043904
}

0 commit comments

Comments
 (0)