Skip to content
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

[8.x] Some cleanups to OperationRouting (#119440) #119589

Merged

Conversation

original-brownbear
Copy link
Member

Backports the following commits to 8.x:

Two small cleanups that remove duplication and dead-code:
1. The shardId method can be made `static`, it's only non-static use in mocking was unnecessary and could just be deleted
2. Filtering for searchable shards is the same logic now for stateful and stateless. We also only use it when building a
filtered `PlainShardIterator` so it might as well live there to remove some duplication.
@original-brownbear original-brownbear added :Search/Search Search-related issues that do not fall into other categories >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Meta label for search team labels Jan 6, 2025
@elasticsearchmachine elasticsearchmachine merged commit 14cf656 into elastic:8.x Jan 7, 2025
15 checks passed
@original-brownbear original-brownbear deleted the backport/8.x/pr-119440 branch January 7, 2025 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants