Skip to content

Commit 3aa44e4

Browse files
authored
Mute FullClusterRestartTest#testWatcher and 30s timeout for ye… (#48848)
The timeout was increased to 60s to allow this test more time to reach a yellow state. However, the test will still on occasion fail even with the 60s timeout. Related: #48381 Related: #48434 Related: #47950 Related: #40178
1 parent 10fc118 commit 3aa44e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public void testSecurityNativeRealm() throws Exception {
123123
}
124124

125125
@SuppressWarnings("unchecked")
126+
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/48381")
126127
public void testWatcher() throws Exception {
127128
if (isRunningAgainstOldCluster()) {
128129
logger.info("Adding a watch on old cluster {}", getOldClusterVersion());
@@ -415,7 +416,7 @@ private void assertBasicWatchInteractions() throws Exception {
415416
private void waitForYellow(String indexName) throws IOException {
416417
Request request = new Request("GET", "/_cluster/health/" + indexName);
417418
request.addParameter("wait_for_status", "yellow");
418-
request.addParameter("timeout", "60s");
419+
request.addParameter("timeout", "30s");
419420
request.addParameter("wait_for_no_relocating_shards", "true");
420421
request.addParameter("wait_for_no_initializing_shards", "true");
421422
Map<String, Object> response = entityAsMap(client().performRequest(request));

0 commit comments

Comments
 (0)