From ec5d6ea708891f3d2b707feddd3c3f54bbc19cfc Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Sun, 12 Mar 2023 22:03:23 -0700 Subject: [PATCH] Fix broken test. Signed-off-by: Marc Handalian --- .../opensearch/index/engine/NRTReplicationReaderManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/engine/NRTReplicationReaderManager.java b/server/src/main/java/org/opensearch/index/engine/NRTReplicationReaderManager.java index d639ea854700e..9353750a6f111 100644 --- a/server/src/main/java/org/opensearch/index/engine/NRTReplicationReaderManager.java +++ b/server/src/main/java/org/opensearch/index/engine/NRTReplicationReaderManager.java @@ -53,12 +53,11 @@ public class NRTReplicationReaderManager extends OpenSearchReaderManager { OpenSearchDirectoryReader reader, Consumer> onNewReader, Consumer> onReaderClosed - ) throws IOException { + ) { super(reader); currentInfos = unwrapStandardReader(reader).getSegmentInfos(); this.onReaderClosed = onReaderClosed; this.onNewReader = onNewReader; - onNewReader.accept(currentInfos.files(true)); } @Override