Skip to content

Commit

Permalink
NoOp engine enablement on remote translog store enable status
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <[email protected]>
  • Loading branch information
ashking94 committed Aug 16, 2022
1 parent 65fe29c commit 5f93b80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class NRTReplicationEngineFactory implements EngineFactory {
public Engine newReadWriteEngine(EngineConfig config) {
Engine engine;
if (config.isReadOnlyReplica()) {
if (config.getIndexSettings().isRemoteStoreEnabled()) {
if (config.getIndexSettings().isRemoteStoreEnabled() && config.getIndexSettings().isRemoteTranslogStoreEnabled()) {
engine = new NRTReplicationNoOpEngine(config);
} else {
engine = new NRTReplicationEngine(config);
Expand Down

0 comments on commit 5f93b80

Please sign in to comment.