Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute aggregations in its own thread in AggregatorTestCase #99149

Closed
wants to merge 1 commit into from

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Sep 4, 2023

In #98204, the way queries are executed changed. From now one there are two threadpools, one that coordinates the searches and another to actually execute them. This change was not reflected in the AggregatorTestCase where everything is done on a single thread.

This PR modifies modifies the test to reflect the new execution strategy by introducing an AggregatorCollectorManager that is used to execute aggregations.

Unfortunately test are failing with this change, in particular for Composite and frequent items aggregations. This aggregations are now accessing doc values from different threads, something that lucene is not happy about and complains. I guess there are no Integration tests that is exercising this logic for those aggregations.

@iverase iverase added >test Issues or PRs that are addressing/adding tests :Analytics/Aggregations Aggregations :Search/Search Search-related issues that do not fall into other categories v8.11.0 labels Sep 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added Team:Search Meta label for search team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Sep 4, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@iverase
Copy link
Contributor Author

iverase commented Sep 26, 2023

Not needed

@iverase iverase closed this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations :Search/Search Search-related issues that do not fall into other categories Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants