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

Make sure to rewrite explain query on coordinator #87013

Merged
merged 4 commits into from
May 24, 2022

Conversation

jtibshirani
Copy link
Contributor

Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

This PR applies a similar fix to #29033 and rewrites the query in
TransportExplainAction.

Closes #64281.

@jtibshirani jtibshirani added >bug :Search/Search Search-related issues that do not fall into other categories v8.3.0 v7.17.5 labels May 20, 2022
@elasticsearchmachine
Copy link
Collaborator

Hi @jtibshirani, I've created a changelog YAML for you.

@jtibshirani jtibshirani marked this pull request as ready for review May 23, 2022 18:26
@elasticmachine elasticmachine added the Team:Search Meta label for search team label May 23, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@jtibshirani
Copy link
Contributor Author

Thanks for the review!

@jtibshirani jtibshirani merged commit 88fc893 into elastic:master May 24, 2022
@jtibshirani jtibshirani deleted the rewrite-explain branch May 24, 2022 20:04
jtibshirani added a commit that referenced this pull request May 24, 2022
Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

Closes #64281.
jtibshirani added a commit that referenced this pull request May 24, 2022
Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

Closes #64281.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.17.5 v8.2.2 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception in Explain API: async actions are left after rewrite
4 participants