Skip to content

Conversation

@original-brownbear
Copy link
Contributor

@original-brownbear original-brownbear commented Jan 13, 2025

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

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>
@original-brownbear original-brownbear added the :Search Foundations/Search Catch all for Search Foundations label Jan 13, 2025

// 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(
Copy link
Contributor Author

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.

@original-brownbear original-brownbear marked this pull request as ready for review January 17, 2025 15:08
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jan 17, 2025
Copy link
Contributor

@andreidan andreidan left a 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.

@original-brownbear
Copy link
Contributor Author

Thanks Andrei!

@original-brownbear original-brownbear merged commit 5644551 into elastic:8.x Jan 17, 2025
15 checks passed
@original-brownbear original-brownbear deleted the fix-118718 branch January 17, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants