Skip to content

Commit 5c8cf25

Browse files
Too big for CI
1 parent 66a2735 commit 5c8cf25

File tree

1 file changed

+5
-3
lines changed
  • test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack

1 file changed

+5
-3
lines changed

test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ public void testFetchTooManyBigFields() throws IOException {
585585
assertCircuitBreaks(attempt -> fetchManyBigFields(attempt * 500));
586586
}
587587

588-
public void testStatsOnLargeKeywords() throws IOException, InterruptedException {
589-
initVeryLargeText(500, 1, 10_000_000, 1);
588+
public void testStatsOnLargeKeywords() throws IOException {
589+
initVeryLargeText(500, 1, 2_000_000, 1);
590590
StringBuilder query = startQuery();
591591
query.append("FROM large_text_idx | STATS SUM(LENGTH(large_text0))\"}");
592592
for (int i = 0; i < 5; i++) {
@@ -632,7 +632,9 @@ private void initVeryLargeText(int docs, int nFields, int fieldSize, int docsPer
632632
logger.error("loaded {} docs", d);
633633
}
634634
}
635-
initIndex("large_text_idx", bulk.toString());
635+
if (bulk.length() > 0) {
636+
bulk("large_text_idx", bulk.toString());
637+
}
636638
}
637639

638640
/**

0 commit comments

Comments
 (0)