From 4da50a7b7848615721c76218ea962955e5204fb7 Mon Sep 17 00:00:00 2001 From: Poojita Raj Date: Fri, 1 Apr 2022 10:18:57 -0700 Subject: [PATCH] fix gradle check failures caused by engineConfig init (#2663) Signed-off-by: Poojita Raj --- .../java/org/opensearch/index/shard/RefreshListenersTests.java | 2 +- .../main/java/org/opensearch/index/engine/EngineTestCase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); }