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

[DOCS] mention automatic cancellation in search docs #46706

Merged
merged 3 commits into from
Sep 19, 2019

Conversation

javanna
Copy link
Member

@javanna javanna commented Sep 13, 2019

Add a small note around automatic search cancellation which was missed as part of #43332

Relates to #43332

@javanna javanna added >docs General docs changes :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.5.0 labels Sep 13, 2019
@javanna javanna requested review from giladgal and jimczi September 13, 2019 12:44
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-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.

I left some minor comments

in from gets closed. It is fundamental that the http client sending requests
closes connections whenever requests time out or are aborted. Automatic
cancellation relies on standard <<task-cancellation,task cancellation>>
mechanism. By default, a running search only checks if it is cancelled or not
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unrelated to this change but the default value for low_level_cancellation is now true so the doc is not accurate. We should remove this sentence entirely: By default, a running search only checks if it is cancelled or not....

Searches can be cancelled using standard <<task-cancellation,task cancellation>>
mechanism. By default, a running search only checks if it is cancelled or
not on segment boundaries, therefore the cancellation can be delayed by large
Searches are automatically cancelled when the http connection that they came
Copy link
Contributor

Choose a reason for hiding this comment

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

I find the sentence hard to read, maybe something like: when the http connection used to perform the request is closed by the client ?

@javanna
Copy link
Member Author

javanna commented Sep 13, 2019

@jimczi can you have another look?

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

@javanna javanna merged commit 126f1b5 into elastic:master Sep 19, 2019
javanna added a commit that referenced this pull request Sep 19, 2019
Add a small note around automatic search cancellation which was missed as part of #43332

Relates to #43332
javanna added a commit that referenced this pull request Sep 24, 2019
Add a small note around automatic search cancellation which was missed as part of #43332

Relates to #43332
@javanna javanna added the v7.4.0 label Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Search/Search Search-related issues that do not fall into other categories v7.4.0 v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants