Skip to content

Test: assert adjacency matrix cache #69440

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

Merged
merged 3 commits into from
Apr 13, 2021
Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Feb 23, 2021

Adds an assertion that the adjacency matrix aggregation can hit the
request cache even when the request contains a lookup style terms
filter.

Adds an assertion that the adjacency matrix aggregation can hit the
request cache even when the request contains a lookup style `terms`
filter.
@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Analytics/Aggregations Aggregations v8.0.0 v7.13.0 labels Feb 23, 2021
@nik9000 nik9000 requested a review from polyfractal February 23, 2021 14:13
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Feb 23, 2021
@elasticmachine
Copy link
Collaborator

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

@nik9000 nik9000 requested review from imotov and removed request for polyfractal April 12, 2021 17:18
Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

Added a minor suggestion. Otherwise LGTM.

- do:
indices.stats: { index: test, metric: request_cache}
- match: { _shards.total: 1 }
- match: { _all.total.request_cache.hit_count: 1 }
Copy link
Contributor

Choose a reason for hiding this comment

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

That game me a bit of a pause. Took me a bit to realize that you are asking for one index only in stats. I think it would have been clearer if it was indices.test.total.request_cache.hit_coun instead of _all.total.....

@nik9000
Copy link
Member Author

nik9000 commented Apr 13, 2021

Thanks for reviewing @imotov !

@nik9000 nik9000 merged commit b4bac7b into elastic:master Apr 13, 2021
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Apr 13, 2021
Adds an assertion that the adjacency matrix aggregation can hit the
request cache even when the request contains a lookup style `terms`
filter.
@nik9000
Copy link
Member Author

nik9000 commented Apr 14, 2021

I believe there is an error in this one around caching. I've added the infrastructure to fix that error in #69439.

nik9000 added a commit that referenced this pull request Apr 15, 2021
Adds an assertion that the adjacency matrix aggregation can hit the
request cache even when the request contains a lookup style `terms`
filter.
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 Issues or PRs that are addressing/adding tests v7.13.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants