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] Add _primary preference only for segment replication enabled indices #2045

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 9c12628 from #2040.

…2040)

* Add _primary preference only for segment replication enabled indices

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add test for segment replication tests

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Remove isSegRepEnabled check and use _primary_first preference

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Remove unused ClusterState reference

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Self review

Signed-off-by: Suraj Singh <surajrider@gmail.com>

---------

Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit 9c12628)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #2045 (5845e26) into 2.x (c3071fd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x    #2045   +/-   ##
=========================================
  Coverage     97.32%   97.32%           
  Complexity     4661     4661           
=========================================
  Files           410      410           
  Lines         12109    12110    +1     
  Branches        831      831           
=========================================
+ Hits          11785    11786    +1     
  Misses          317      317           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.32% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...s/storage/OpenSearchDataSourceMetadataStorage.java 98.75% <100.00%> (+<0.01%) ⬆️

@dreamer-89
Copy link
Member

@penghuo @vamsi-amazon : Need help with review and merge on this.

@penghuo penghuo merged commit 9c5977f into 2.x Sep 1, 2023
27 of 28 checks passed
@github-actions github-actions bot deleted the backport/backport-2040-to-2.x branch September 1, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants