-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Remove assertExecuteOnStartThread from AbstractSearchAsyncAction #121922
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
Remove assertExecuteOnStartThread from AbstractSearchAsyncAction #121922
Conversation
This is a really strange assertion. I get that it tries to make sure we skip unavailable without forking but this makes extending the AbstractSearchAsyncAction cleanly for batched execution needlessly hard and some of the assertion is dead code already because can-match isn't going through this codepath anymore. -> lets remove it, the code is simple enough now to follow that there's no forking here IMO
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
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.
For the record, the assertion comes from #71580. I agree that it's a weird one. Perhaps we could add a comment to failOnUnavailable
to signal that we don't fork its execution as we don't expect recursive calls to it. Maybe that's redundant though, I am not sure myself.
Thanks Luca :) I think there's no need for a comment, maybe we can actually just inline the method own the line (but shortly :)). |
…stic#121922) This is a really strange assertion. I get that it tries to make sure we skip unavailable without forking but this makes extending the AbstractSearchAsyncAction cleanly for batched execution needlessly hard and some of the assertion is dead code already because can-match isn't going through this codepath anymore. -> lets remove it, the code is simple enough now to follow that there's no forking here IMO
💔 Backport failed
You can use sqren/backport to manually backport by running |
…1922) (#121998) This is a really strange assertion. I get that it tries to make sure we skip unavailable without forking but this makes extending the AbstractSearchAsyncAction cleanly for batched execution needlessly hard and some of the assertion is dead code already because can-match isn't going through this codepath anymore. -> lets remove it, the code is simple enough now to follow that there's no forking here IMO Co-authored-by: Dimitris Rempapis <[email protected]>
This is a really strange assertion. I get that it tries to make sure we skip unavailable without forking but this makes extending the AbstractSearchAsyncAction cleanly for batched execution needlessly hard and some of the assertion is dead code already because can-match isn't going through this codepath anymore.
-> lets remove it, the code is simple enough now to follow that there's no forking here IMO