TEST: Ensure a manual flush always occur
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
@@ -3898,7 +3898,7 @@ public class InternalEngineTests extends EngineTestCase {
lookupAndCheck.run();
}
if (rarely()) {
- engine.flush();
+ engine.flush(false, true);
lookupAndCheck.run();
}
}
