From 31725ef39092c49c80ef3abf93abc7631ea8cd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Thu, 11 Jul 2019 20:14:02 +0200 Subject: [PATCH] [Tests] Increase SimpleQueryStringIT allowed maxClauseCount (#44215) For this test, we randomize the CLUSTER_MAX_CLAUSE_COUNT on test setup (@BeforeClass) between 50 and 100. Some queries in the test generate 56 clauses which hasn't been an issue before LUCENE-8811, but we slightly need to increase the minimal possible clause count now. Closes #44192 --- .../org/elasticsearch/search/query/SimpleQueryStringIT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java b/server/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java index 4d314e67a52..5c64487397f 100644 --- a/server/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java +++ b/server/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java @@ -83,7 +83,7 @@ public class SimpleQueryStringIT extends ESIntegTestCase { @BeforeClass public static void createRandomClusterSetting() { - CLUSTER_MAX_CLAUSE_COUNT = randomIntBetween(50, 100); + CLUSTER_MAX_CLAUSE_COUNT = randomIntBetween(60, 100); } @Override @@ -493,7 +493,6 @@ public class SimpleQueryStringIT extends ESIntegTestCase { assertHitCount(resp, 2L); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/44192") public void testDocWithAllTypes() throws Exception { String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json"); prepareCreate("test").setSource(indexBody, XContentType.JSON).get();