From 807c2fb8753ef9548690824be5d3627bbd6452f6 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 15 Apr 2025 15:56:47 -0400 Subject: [PATCH] ESQL: Create fewer documents in lookup tests (#126874) This lowers the number of documents used to test lookup because we have a few failures over the last few months. These are all cases that we expect to *pass* so fewer documents should make them even more likely to pass. Closes #125913 Closes #125779 --- .../elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java b/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java index 70f1ba529ec5e..3dbcd14129f63 100644 --- a/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java +++ b/test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java @@ -641,7 +641,7 @@ private Map fetchMvLongs() throws IOException { } public void testLookupExplosion() throws IOException { - int sensorDataCount = 500; + int sensorDataCount = 400; int lookupEntries = 10000; Map map = lookupExplosion(sensorDataCount, lookupEntries); assertMap(map, matchesMap().extraOk().entry("values", List.of(List.of(sensorDataCount * lookupEntries)))); @@ -653,7 +653,7 @@ public void testLookupExplosionManyMatches() throws IOException { } public void testLookupExplosionNoFetch() throws IOException { - int sensorDataCount = 7500; + int sensorDataCount = 7000; int lookupEntries = 10000; Map map = lookupExplosionNoFetch(sensorDataCount, lookupEntries); assertMap(map, matchesMap().extraOk().entry("values", List.of(List.of(sensorDataCount * lookupEntries))));