diff --git a/server/src/main/java/org/opensearch/index/engine/Engine.java b/server/src/main/java/org/opensearch/index/engine/Engine.java index cf83a9808ee56..29865da143338 100644 --- a/server/src/main/java/org/opensearch/index/engine/Engine.java +++ b/server/src/main/java/org/opensearch/index/engine/Engine.java @@ -1256,7 +1256,7 @@ public final void flush() throws EngineException { /** * Rolls the translog generation and cleans unneeded. */ - public abstract void rollTranslogGeneration() throws EngineException; + public abstract void rollTranslogGeneration() throws EngineException, IOException; /** * Triggers a forced merge on this engine diff --git a/server/src/main/java/org/opensearch/index/engine/NRTReplicationEngine.java b/server/src/main/java/org/opensearch/index/engine/NRTReplicationEngine.java index 0becd84b11915..19759143f9e76 100644 --- a/server/src/main/java/org/opensearch/index/engine/NRTReplicationEngine.java +++ b/server/src/main/java/org/opensearch/index/engine/NRTReplicationEngine.java @@ -435,7 +435,7 @@ public boolean shouldRollTranslogGeneration() { } @Override - public void rollTranslogGeneration() throws EngineException { + public void rollTranslogGeneration() throws EngineException, IOException { translogManager.rollTranslogGeneration(); } diff --git a/server/src/main/java/org/opensearch/index/engine/ReadOnlyEngine.java b/server/src/main/java/org/opensearch/index/engine/ReadOnlyEngine.java index c0ed9294353f5..ebe2bf6d0107a 100644 --- a/server/src/main/java/org/opensearch/index/engine/ReadOnlyEngine.java +++ b/server/src/main/java/org/opensearch/index/engine/ReadOnlyEngine.java @@ -522,7 +522,7 @@ public boolean shouldRollTranslogGeneration() { } @Override - public void rollTranslogGeneration() { + public void rollTranslogGeneration() throws IOException { translogManager.rollTranslogGeneration(); }