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

Enable cancellation for msearch requests #61337

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Aug 19, 2020

Today multi-search requests are not cancellable because we create regular tasks instead of cancellable ones for them.

@dnhatn dnhatn added >enhancement :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.10.0 labels Aug 19, 2020
@dnhatn dnhatn requested a review from jimczi August 19, 2020 15:20
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 19, 2020
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.

LGTM

@dnhatn
Copy link
Member Author

dnhatn commented Aug 19, 2020

Thanks Jim!

@dnhatn dnhatn merged commit 572bb40 into elastic:master Aug 19, 2020
@dnhatn dnhatn deleted the msearch-cancellable branch August 19, 2020 20:58
dnhatn added a commit that referenced this pull request Aug 19, 2020
Today multi-search requests are not cancellable because we create
regular tasks instead of cancellable ones for them.
@javanna
Copy link
Member

javanna commented Aug 20, 2020

Now that msearch is cancellable, is the plan to make it possible to automatically cancel it on connection close, like search works?

@dnhatn
Copy link
Member Author

dnhatn commented Aug 20, 2020

Now that msearch is cancellable, is the plan to make it possible to automatically cancel it on connection close, like search works?

@javanna I think we should implement it as it will be a small/contained change with RestCancellableNodeClient. (Sorry, I did not see your PR #44494 that implements the cancellation for msearch till now).

@javanna
Copy link
Member

javanna commented Aug 20, 2020

no worries @dnhatn it had stalled and I was not finding time to get back to it. Thanks for fixing.

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

Successfully merging this pull request may close these issues.

5 participants