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
This commit is contained in:
parent
0b7b78b874
commit
a7edf1ed1f
|
@ -3809,7 +3809,6 @@ public class InternalEngineTests extends EngineTestCase {
|
|||
searchResult.close();
|
||||
}
|
||||
|
||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/35823")
|
||||
public void testLookupSeqNoByIdInLucene() throws Exception {
|
||||
int numOps = between(10, 100);
|
||||
long seqNo = 0;
|
||||
|
@ -3878,7 +3877,7 @@ public class InternalEngineTests extends EngineTestCase {
|
|||
lookupAndCheck.run();
|
||||
}
|
||||
if (rarely()) {
|
||||
engine.flush();
|
||||
engine.flush(false, true);
|
||||
lookupAndCheck.run();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue