-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add a checkCancelled public method to ContextIndexSearcher #130645
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
base: main
Are you sure you want to change the base?
Add a checkCancelled public method to ContextIndexSearcher #130645
Conversation
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
javanna
left a comment
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.
Thanks for opening this PR, I left a comment.
| return this.cancellable.isEnabled(); | ||
| } | ||
|
|
||
| public void checkCancelled() { |
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.
Could you add javadocs please?
I am a bit worried that we may end up removing it in the future, because it's used only in tests. Are there other places in prod code where this method may be used perhaps? Could you comment on the fact that it's handy to have for plugins and explain the usecase so that does not get lost? Thanks!
Resolves #121349
Added a
checkCancelled()method toContextIndexSearcher