Skip to content

Commit

Permalink
Fixed a test in NRTReplicationEngineTests
Browse files Browse the repository at this point in the history
Signed-off-by: Satyajit Ganguly <[email protected]>
  • Loading branch information
Satyajit Ganguly committed Aug 1, 2022
1 parent cf972a0 commit 1c08624
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void testEngineWritesOpsToTranslog() throws Exception {
// recover a new engine from the nrtEngine's xlog.
nrtEngine.syncTranslog();
try (InternalEngine engine = new InternalEngine(nrtEngine.config())) {
TranslogHandler translogHandler = createTranslogHandler(nrtEngine.config().getIndexSettings(), engine);
engine.translogManager().recoverFromTranslog(translogHandler, engine.getProcessedLocalCheckpoint(), Long.MAX_VALUE);
assertEquals(getDocIds(engine, true), docs);
}
Expand Down

0 comments on commit 1c08624

Please sign in to comment.