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

[Backport 2.17] [RW Separation] Add routing preference to route requests only to search replicas. #15699

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b787753 from #15690.

…ch replicas. (#15563) (#15690)

* Add routing preference to route requests only to search replicas.

This adds SEARCH_REPLICA routing preference and defaults to this preference
for indices that have search replicas.

* add changelog entry

* PR feedback - extract a private method for replica filtering

* remove changelog entry

---------

(cherry picked from commit 3681b52)

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit b787753)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@mch2 mch2 changed the title [Backport 2.17] [Backport 2.x] [RW Separation] Add routing preference to route requests only to search replicas. [Backport 2.17] [RW Separation] Add routing preference to route requests only to search replicas. Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

✅ Gradle check result for 26e16e3: SUCCESS

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.63%. Comparing base (bd5041f) to head (26e16e3).
Report is 1 commits behind head on 2.17.

Files with missing lines Patch % Lines
...g/opensearch/cluster/routing/OperationRouting.java 66.66% 0 Missing and 2 partials ⚠️
...search/cluster/routing/IndexShardRoutingTable.java 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               2.17   #15699      +/-   ##
============================================
- Coverage     71.77%   71.63%   -0.15%     
+ Complexity    64298    64229      -69     
============================================
  Files          5251     5251              
  Lines        300482   300493      +11     
  Branches      43724    43728       +4     
============================================
- Hits         215672   215251     -421     
- Misses        66760    67213     +453     
+ Partials      18050    18029      -21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mch2 mch2 merged commit a3312b4 into 2.17 Sep 4, 2024
60 of 61 checks passed
@andrross andrross deleted the backport/backport-15690-to-2.17 branch October 17, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant