-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
[DOCS] mention automatic cancellation in search docs #46706
Conversation
Pinging @elastic/es-search |
Pinging @elastic/es-docs |
There was a problem hiding this 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
docs/reference/search.asciidoc
Outdated
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 |
There was a problem hiding this comment.
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...
.
docs/reference/search.asciidoc
Outdated
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 |
There was a problem hiding this comment.
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
?
@jimczi can you have another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add a small note around automatic search cancellation which was missed as part of #43332
Relates to #43332