Skip to content

Commit

Permalink
Ensure warm up engine in testTranslogReplayWithFailure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dnhatn committed Jan 29, 2020
1 parent 25ecfaa commit 99eb1ba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2956,6 +2956,7 @@ public void testTranslogReplayWithFailure() throws IOException {
directory.setFailOnOpenInput(false);
directory.setAllowRandomFileNotFoundException(false);
if (started) {
engine.refresh("warm_up");
assertVisibleCount(engine, numDocs, false);
engine.close();
}
Expand Down

0 comments on commit 99eb1ba

Please sign in to comment.