From b8c818ba86a5550db66f30675e2e2c154e59222b Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 4 Jan 2022 14:42:19 -0600 Subject: [PATCH 1/2] Fix Watcher testWatcherWithApiKey (#82136) Bump the timeout allowed for a Watch to execute. closes #77026 --- .../org/elasticsearch/xpack/restart/FullClusterRestartIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java index d3a46794fdd99..8b45f6cc8a583 100644 --- a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java +++ b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java @@ -259,7 +259,7 @@ public void testWatcherWithApiKey() throws Exception { final Map getWatchStatusResponse = entityAsMap(client().performRequest(getRequest)); final Map status = (Map) getWatchStatusResponse.get("status"); assertEquals("executed", status.get("execution_state")); - }); + }, 30, TimeUnit.SECONDS); } else { logger.info("testing against {}", getOldClusterVersion()); @@ -299,7 +299,7 @@ public void testWatcherWithApiKey() throws Exception { versionIncreased.get() && executed.get(), is(true) ); - }); + }, 30, TimeUnit.SECONDS); } finally { stopWatcher(); } From 46a618454a490950829d933530d56037c6214794 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 4 Jan 2022 14:47:36 -0600 Subject: [PATCH 2/2] unmute test --- .../org/elasticsearch/xpack/restart/FullClusterRestartIT.java | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java index 8b45f6cc8a583..e9f404afbc453 100644 --- a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java +++ b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java @@ -233,7 +233,6 @@ public void testWatcher() throws Exception { } @SuppressWarnings("unchecked") - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/77026") public void testWatcherWithApiKey() throws Exception { assumeTrue("API key is available since 6.7.0", getOldClusterVersion().onOrAfter(Version.V_6_7_0)); if (isRunningAgainstOldCluster()) {