Skip to content

Commit 316fba0

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 b080237 commit 316fba0

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
@@ -2956,6 +2956,7 @@ public void testTranslogReplayWithFailure() throws IOException {
29562956
directory.setFailOnOpenInput(false);
29572957
directory.setAllowRandomFileNotFoundException(false);
29582958
if (started) {
2959+
engine.refresh("warm_up");
29592960
assertVisibleCount(engine, numDocs, false);
29602961
engine.close();
29612962
}

0 commit comments

Comments
 (0)