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 NormalizerAgg test searcher wrapping #57171

Merged
merged 2 commits into from
May 26, 2020
Merged

Conversation

talevy
Copy link
Contributor

@talevy talevy commented May 26, 2020

The searcher was randomly wrapping its reader as slow, parallel, or filtered.
This was causing casting issues in the normalizer tests. By removing the
wrapping, the problem goes away.

Closes #57164

The searcher was randomly wrapping its reader as slow, parallel, or filtered.
This was causing casting issues in the normalizer tests. By removing the
wrapping, the problem goes away.

Closes elastic#57164
@talevy talevy added >test Issues or PRs that are addressing/adding tests :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.9.0 labels May 26, 2020
@talevy talevy requested a review from jakelandis May 26, 2020 18:58
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM.

If you mean boolean maybeWrap = unwrapped == indexReader; from AggregatorTestCase, I'm removing it now. It prevented us from using lucene's wrappers when we needed global ordinals. But now that we're using newIndexSearcher we won't use the wrapper anyway.

@talevy talevy merged commit 7eb5273 into elastic:master May 26, 2020
@talevy talevy deleted the fix57164 branch May 26, 2020 20:10
talevy added a commit that referenced this pull request May 26, 2020
The searcher was randomly wrapping its reader as slow, parallel, or filtered.
This was causing casting issues in the normalizer tests. By removing the
wrapping, the problem goes away.

Closes #57164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test failure: org.elasticsearch.xpack.analytics.normalize.NormalizeAggregatorTests.testTermsAggParent
4 participants