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.x] [RW Separation] Add routing preference to route requests only to search replicas. #15690

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 3681b52 from #15563.

…ch replicas. (#15563)

* 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.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* add changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* PR feedback - extract a private method for replica filtering

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
(cherry picked from commit 3681b52)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Sep 4, 2024

❌ Gradle check result for c62aeda:

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented Sep 4, 2024

❕ Gradle check result for c62aeda: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

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.71%. Comparing base (d2ae53e) to head (c62aeda).
Report is 2 commits behind head on 2.x.

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.x   #15690      +/-   ##
============================================
+ Coverage     71.60%   71.71%   +0.11%     
- Complexity    64190    64257      +67     
============================================
  Files          5251     5251              
  Lines        300493   300504      +11     
  Branches      43741    43745       +4     
============================================
+ Hits         215160   215504     +344     
+ Misses        67333    66975     -358     
- Partials      18000    18025      +25     

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

@mch2 mch2 merged commit b787753 into 2.x Sep 4, 2024
61 of 63 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
…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 pushed a commit that referenced this pull request Sep 4, 2024
…ch replicas. (#15563) (#15690) (#15699)

* 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)




(cherry picked from commit b787753)

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>
@andrross andrross deleted the backport/backport-15563-to-2.x 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