Skip to content

Conversation

@original-brownbear
Copy link
Contributor

We shouldn't be creating new collectors while also swtiching out the leafCollectors structure. The safety of this is somewhat tricky to reason about and also it's needlessly slow too to keep indirectly accessing the mutable field. Also, lets extract the logic creating the leaf collectors to a hopefully cold path and save needless lookups from the top docs collectors in it.
Lastly, remove deprecated/noop false concurrency flags.

We shouldn't be creating new collectors while also swtiching out the `leafCollectors`
structure. The safety of this is somewhat tricky to reason about and also it's needlessly
slow too to keep indirectly accessing the mutable field.
Also, lets extract the logic creating the leaf conllectors to a hopefully cold path
and save needless lookups from the top docs collectors in it.
@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0 labels Feb 19, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@original-brownbear original-brownbear changed the title Fix logic in TopHitsAggregator.getLeafCollector Simplify logic/mutability in TopHitsAggregator.getLeafCollector Feb 19, 2025
@original-brownbear original-brownbear closed this by deleting the head repository Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants