Skip to content

Release aggregator context in tests#90540

Merged
not-napoleon merged 9 commits intoelastic:mainfrom
not-napoleon:release-agg-context-in-tests-part-1
Oct 4, 2022
Merged

Release aggregator context in tests#90540
not-napoleon merged 9 commits intoelastic:mainfrom
not-napoleon:release-agg-context-in-tests-part-1

Conversation

@not-napoleon
Copy link
Copy Markdown
Member

@not-napoleon not-napoleon commented Sep 29, 2022

Relates to #89437

This attempts to mirror the production memory release cycle in the most common branch of the aggregations unit tests. As many tests do not follow that branch, there are additional changes around making those branches release allocated memory, although I do not intend them to simulate production in any meaningful way.

This is basically "part 1" of this work. In the course of working on this, Nik and I uncovered a bug in the aggregations testing framework that disabled the MockBigArrays leak checking in many tests. I have a fix for that, and am working through fixing related test failures, but I think it makes more sense to add that in a separate PR. That'll keep the reviews shorter, and get the benefit of this memory testing available to the rest of the team sooner.

@elasticsearchmachine elasticsearchmachine added v8.6.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Sep 29, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@not-napoleon not-napoleon marked this pull request as draft September 29, 2022 22:03
@not-napoleon
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/part-1

@not-napoleon not-napoleon marked this pull request as ready for review October 3, 2022 16:25
@not-napoleon not-napoleon requested a review from nik9000 October 3, 2022 16:27
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) v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants