Skip to content

Conversation

@julian-elastic
Copy link
Contributor

@julian-elastic julian-elastic commented Nov 21, 2025

As we keep adding more and more test cases to HeapAttackIT, it takes longer and longer. The timeout is also getting increased, and right now the time out is set to 40 minutes. It seems occasionally we still hit it though. I don't think it is sustainable to keep increasing the timeout. I think it is time to split the test into a few smaller tests.

With this change we:

  • Refactor HeapAttackIT.java by moving the 10+ Lookup Join related test and 3 Enrich test cases to HeapAttackLookupJoinIT.java.
  • Add HeapAttackTestCase.java and moved the common methods used by HeapAttackIT.java and HeapAttackLookupJoinIT.java there.
  • Unmute testAggTooManyMvLongs and testLookupExplosionBigString

Closes #135585
Closes #135122

@julian-elastic julian-elastic self-assigned this Nov 21, 2025
@julian-elastic julian-elastic added :Analytics/Compute Engine Analytics in ES|QL >test Issues or PRs that are addressing/adding tests labels Nov 21, 2025
@elasticsearchmachine elasticsearchmachine added v9.3.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Nov 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@julian-elastic julian-elastic force-pushed the fixTestAggTooManyMvLongs branch from 375750a to f102f37 Compare November 21, 2025 16:38
Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also move the enrich tests together with the lookup tests? LGTM, thanks @julian-elastic

@julian-elastic julian-elastic merged commit b1e3d06 into elastic:main Nov 24, 2025
34 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Nov 24, 2025
…-json

* upstream/main: (247 commits)
  Mute org.elasticsearch.xpack.inference.integration.SemanticTextIndexOptionsIT testValidateIndexOptionsWithBasicLicense elastic#138513
  Mute org.elasticsearch.xpack.esql.heap_attack.HeapAttackLookupJoinIT testLookupExplosionBigString elastic#138510
  This shouldn't be zero (elastic#138501)
  sum of empty histogram is now null (elastic#138378)
  Test ES|QL bfloat16 support (elastic#138499)
  Fix exception handling in S3 `compareAndExchangeRegister` (elastic#138488)
  Mute org.elasticsearch.xpack.exponentialhistogram.ExponentialHistogramFieldMapperTests testFormattedDocValues elastic#138504
  Mute org.elasticsearch.ingest.geoip.IngestGeoIpClientYamlTestSuiteIT test {yaml=ingest_geoip/60_ip_location_databases/Test adding, getting, and removing ip location databases} elastic#138502
  ESQL: Refactor HeapAttackIT (elastic#138432)
  [Inference API] Add ElasticInferenceServiceDenseTextEmbeddingsServiceSettings to InferenceNamedWriteablesProvider (elastic#138484)
  Store split indices (elastic#138396)
  ES|QL Update CHUNK to support chunking_settings as optional argument (elastic#138123)
  Extract common blob-update logic in `S3HttpHandler` (elastic#138490)
  Cleanup esql request building api (elastic#138398)
  Round sum and avg in exponential_histogram CSV tests (elastic#138472)
  ESQL: load exponential_histogram total count as double instead of long (elastic#138417)
  [SIMD] Use fixed width native types for better Java interoperability (elastic#138429)
  Do not use Min or Max as Top's surrogate when there is an outputField (elastic#138380)
  ES|QL: Fix generative tests (elastic#138478)
  Mute org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT testCreatesEisChatCompletion_DoesNotRemoveEndpointWhenNoLongerAuthorized elastic#138480
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Compute Engine Analytics in ES|QL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] HeapAttackIT testAggTooManyMvLongs failing [CI] HeapAttackIT testLookupExplosionBigString failing

4 participants