diff --git a/muted-tests.yml b/muted-tests.yml index d91c36701a1f3..6943ef16081fe 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -222,9 +222,6 @@ tests: - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:spatial.ConvertFromStringParseError} issue: https://github.com/elastic/elasticsearch/issues/139213 -- class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackSubqueryIT - method: testGiantTextFieldInSubqueryIntermediateResultsWithSort - issue: https://github.com/elastic/elasticsearch/issues/141034 - class: org.elasticsearch.xpack.transform.checkpoint.TransformCheckpointServiceNodeTests method: testGetCheckpointStats issue: https://github.com/elastic/elasticsearch/issues/141112 diff --git a/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackSubqueryIT.java b/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackSubqueryIT.java index 8a4329a92ca34..e00ccbe038e45 100644 --- a/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackSubqueryIT.java +++ b/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackSubqueryIT.java @@ -201,17 +201,15 @@ public void testManyRandomKeywordFieldsInSubqueryIntermediateResultsWithAggGBYMa } public void testGiantTextFieldInSubqueryIntermediateResults() throws IOException { - int docs = 50; + int docs = isServerless() ? 20 : 50; heapAttackIT.initGiantTextField(docs, false, 5); assertCircuitBreaks(attempt -> buildSubqueries(MAX_SUBQUERIES, "bigtext")); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/141034") public void testGiantTextFieldInSubqueryIntermediateResultsWithSort() throws IOException { - // TODO OOM, after pages are added to TopN, the page is released, so the overestimation on big blocks are gone - int docs = 50; + int docs = 20; heapAttackIT.initGiantTextField(docs, false, 5); - assertCircuitBreaks(attempt -> buildSubqueriesWithSort(MAX_SUBQUERIES, "bigtext", " f ")); + assertCircuitBreaks(attempt -> buildSubqueriesWithSort(MAX_SUBQUERIES, "bigtext", " substring(f, 5) ")); } public void testGiantTextFieldInSubqueryIntermediateResultsWithAggNoGrouping() throws IOException {