From 299df960f96fecce2dbe0946171cfc74cb0204de Mon Sep 17 00:00:00 2001 From: Ranjith Ramachandra Date: Sat, 2 Sep 2023 18:21:23 +0530 Subject: [PATCH] push --- .../java/org/opensearch/cluster/NoClusterManagerNodeIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/cluster/NoClusterManagerNodeIT.java b/server/src/internalClusterTest/java/org/opensearch/cluster/NoClusterManagerNodeIT.java index 94df4ecb1826c..18b2345b7b962 100644 --- a/server/src/internalClusterTest/java/org/opensearch/cluster/NoClusterManagerNodeIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/cluster/NoClusterManagerNodeIT.java @@ -258,6 +258,7 @@ void checkWriteAction(ActionRequestBuilder builder) { } } + @AwaitsFix(bugUrl = "hello.com") public void testNoClusterManagerActionsWriteClusterManagerBlock() throws Exception { Settings settings = Settings.builder() .put(AutoCreateIndex.AUTO_CREATE_INDEX_SETTING.getKey(), false) @@ -296,7 +297,7 @@ public void testNoClusterManagerActionsWriteClusterManagerBlock() throws Excepti assertTrue(state.blocks().hasGlobalBlockWithId(NoClusterManagerBlockService.NO_CLUSTER_MANAGER_BLOCK_ID)); }); - GetResponse getResponse = clientToClusterManagerlessNode.prepareGet("test1", "1").get(); + GetResponse getResponse = clientToClusterManagerlessNode.prepareGet("test1", "1").setPreference("_primary").get(); assertExists(getResponse); SearchResponse countResponse = clientToClusterManagerlessNode.prepareSearch("test1")