From 8f4b1cd4aa16b4fce26877b0e8c47a332835e0b7 Mon Sep 17 00:00:00 2001
From: "opensearch-trigger-bot[bot]"
 <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Date: Tue, 1 Oct 2024 10:30:21 -0400
Subject: [PATCH] Increase cluster publish timeout in flaky test
 testStaleClusterManagerNotHijackingMajority (#13463) (#13513)

(cherry picked from commit 3b0cd0aef0097715041b65f5f0c942d1451b71d3)

Signed-off-by: Rahul Karajgikar <karajgik@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rahul Karajgikar <karajgik@amazon.com>
---
 .../opensearch/discovery/StableClusterManagerDisruptionIT.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java b/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
index f6f2b2dbfd096..4de79a31d0146 100644
--- a/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
+++ b/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
@@ -203,7 +203,7 @@ public void testStaleClusterManagerNotHijackingMajority() throws Exception {
             3,
             Settings.builder()
                 .put(LeaderChecker.LEADER_CHECK_TIMEOUT_SETTING.getKey(), "1s")
-                .put(Coordinator.PUBLISH_TIMEOUT_SETTING.getKey(), "1s")
+                .put(Coordinator.PUBLISH_TIMEOUT_SETTING.getKey(), "2s")
                 .build()
         );
         ensureStableCluster(3);