From 6348805cd3618f9aeb2010e7f7cd69e3f9cdf30a Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:15:39 -0700 Subject: [PATCH] Increase timeout for cluster status call in BWC (#892) (#894) Signed-off-by: Martin Gaievski (cherry picked from commit 22f36c5f4f44d8efcd346f3cb7b40790e69dc4c8) Co-authored-by: Martin Gaievski --- .../java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java b/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java index 204643de5..7ad0e63f8 100644 --- a/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java +++ b/src/testFixtures/java/org/opensearch/neuralsearch/BaseNeuralSearchIT.java @@ -1200,6 +1200,8 @@ protected void waitForClusterHealthGreen(final String numOfNodes) throws IOExcep Request waitForGreen = new Request("GET", "/_cluster/health"); waitForGreen.addParameter("wait_for_nodes", numOfNodes); waitForGreen.addParameter("wait_for_status", "green"); + waitForGreen.addParameter("cluster_manager_timeout", "60s"); + waitForGreen.addParameter("timeout", "60s"); client().performRequest(waitForGreen); }