-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix SearchStatesIT.testCanMatch #120046
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
Fix SearchStatesIT.testCanMatch #120046
Conversation
We need to override the proxy handler here so that the old type free request gets translated to a scroll free request the same way this works out in local cluster execution. closes #118718 Signed-off-by: Armin Braun <me@obrown.io>
|
|
||
| // BwC handler that translates FREE_CONTEXT_ACTION_NAME into FREE_CONTEXT_SCROLL_ACTION_NAME same way we use | ||
| // FREE_CONTEXT_SCROLL_ACTION_NAME throughout on local nodes | ||
| transportService.registerRequestHandler( |
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'm not too proud of exposing this infrastructure just for a one-off fix to be honest. But then again, hiding it behind some utility method and adding a single-use abstraction for the action-to-action translation seemed even worse. This solution is the minimum amount of code needed as far as I can tell which is quite helpful.
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
andreidan
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.
LGTM, thanks for iterating on this Armin
Just a note - we'll forward port this to main as well.
|
Thanks Andrei! |
Adding back the old style free request to fix CCS BwC situations where we need to proxy requests exactly as is and can't drop the technically redundant original indices.
closes #118718