Skip to content

Commit c24be73

Browse files
committed
Mute FullClusterRestartTest#testWatcher and bring back 30s timeout for yellow
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: elastic#48381 Related: elastic#48434 Related: elastic#47950 Related: elastic#40178
1 parent 10fc118 commit c24be73

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

Lines changed: 2 additions & 1 deletion
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)