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:
Nhat Nguyen 2018-12-06 18:37:54 -05:00 committed by GitHub
parent 0b7b78b874
commit a7edf1ed1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}
}