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

Fix the parent join aggregator test case #60991

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 11, 2020

The test was putting parent and child documents into different segments
which is unrealistic and was causing errors.

Closes #60980

The test was putting parent and child documents into different segments
which is unrealistic and was causing errors.

Closes elastic#60980
@nik9000 nik9000 added :Analytics/Aggregations Aggregations >test-failure Triaged test failures from CI v8.0.0 v7.10.0 labels Aug 11, 2020
@nik9000 nik9000 requested a review from jimczi August 11, 2020 20:49
@nik9000 nik9000 force-pushed the fix_parent_join_tests branch from 9b40902 to d331afb Compare August 11, 2020 20:49
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Aug 11, 2020
@nik9000
Copy link
Member Author

nik9000 commented Aug 11, 2020

@jimczi we talked about copying each leaf and sending a real IndexSearcher into each of the leaves but that didn't fix the test! It would have scattered parent and child documents into different indices which confuses everything. This fixes the test by mimicking how we index the docs.

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

Very nice! Thanks for fixing.

@nik9000 nik9000 merged commit dc1b969 into elastic:master Aug 11, 2020
nik9000 added a commit that referenced this pull request Aug 11, 2020
The test was putting parent and child documents into different segments
which is unrealistic and was causing errors.

Closes #60980
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test-failure Triaged test failures from CI v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reproducible failure in ChildrenToParentAggregatorTests.testParentChildTerms
4 participants