Ensure warm up engine in testTranslogReplayWithFailure

We need to warm up the engine (i.e., perform an external refresh) before
accessing the external refresh. Note that we refresh externally before
allowing reading from a shard.

Relates #48605
Closes #51548
This commit is contained in:
Nhat Nguyen 2020-01-28 21:37:38 -05:00
parent b080237837
commit 316fba0c67
1 changed files with 1 additions and 0 deletions

View File

@ -2956,6 +2956,7 @@ public class InternalEngineTests extends EngineTestCase {
directory.setFailOnOpenInput(false);
directory.setAllowRandomFileNotFoundException(false);
if (started) {
engine.refresh("warm_up");
assertVisibleCount(engine, numDocs, false);
engine.close();
}