[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
This commit is contained in:
Christoph Büscher 2019-07-11 20:14:02 +02:00
parent ae8f625d73
commit 31725ef390
1 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public class SimpleQueryStringIT extends ESIntegTestCase {
@BeforeClass @BeforeClass
public static void createRandomClusterSetting() { public static void createRandomClusterSetting() {
CLUSTER_MAX_CLAUSE_COUNT = randomIntBetween(50, 100); CLUSTER_MAX_CLAUSE_COUNT = randomIntBetween(60, 100);
} }
@Override @Override
@ -493,7 +493,6 @@ public class SimpleQueryStringIT extends ESIntegTestCase {
assertHitCount(resp, 2L); assertHitCount(resp, 2L);
} }
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/44192")
public void testDocWithAllTypes() throws Exception { public void testDocWithAllTypes() throws Exception {
String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json"); String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json");
prepareCreate("test").setSource(indexBody, XContentType.JSON).get(); prepareCreate("test").setSource(indexBody, XContentType.JSON).get();