diff --git a/server/src/test/java/org/opensearch/index/shard/RefreshListenersTests.java b/server/src/test/java/org/opensearch/index/shard/RefreshListenersTests.java index b71b1ee7cddff..3f0f859403ba8 100644 --- a/server/src/test/java/org/opensearch/index/shard/RefreshListenersTests.java +++ b/server/src/test/java/org/opensearch/index/shard/RefreshListenersTests.java @@ -171,7 +171,7 @@ public void onFailedEngine(String reason, @Nullable Exception e) { () -> RetentionLeases.EMPTY, () -> primaryTerm, EngineTestCase.tombstoneDocSupplier(), - true // hard coding to true since primaries drive refreshes + false // hard coding to false ); engine = new InternalEngine(config); engine.recoverFromTranslog((e, s) -> 0, Long.MAX_VALUE); diff --git a/test/framework/src/main/java/org/opensearch/index/engine/EngineTestCase.java b/test/framework/src/main/java/org/opensearch/index/engine/EngineTestCase.java index 6528cc70755d8..9a575d4a3587f 100644 --- a/test/framework/src/main/java/org/opensearch/index/engine/EngineTestCase.java +++ b/test/framework/src/main/java/org/opensearch/index/engine/EngineTestCase.java @@ -875,7 +875,7 @@ public EngineConfig config( retentionLeasesSupplier, primaryTerm, tombstoneDocSupplier(), - true // defaulting isPrimary to true + false // defaulting isReadOnly to false ); }