Skip to content

Commit 9d7b8d8

Browse files
committed
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
1 parent 24f0267 commit 9d7b8d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -2954,6 +2954,7 @@ public void testTranslogReplayWithFailure() throws IOException {
29542954
directory.setFailOnOpenInput(false);
29552955
directory.setAllowRandomFileNotFoundException(false);
29562956
if (started) {
2957+
engine.refresh("warm_up");
29572958
assertVisibleCount(engine, numDocs, false);
29582959
engine.close();
29592960
}

0 commit comments

Comments
 (0)