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] Segment Replication - Allow search idle with no replicas #8709

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport ca74aac from #8173.

* Segment Replication - Allow shard idle when there are no replicas an index.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* Add warning when updating search.idle.after with Segment Replication enabled.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* PR cleanup.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* Add more tests.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* Remove unnecessary assertBusy

Signed-off-by: Marc Handalian <handalm@amazon.com>

---------

Signed-off-by: Marc Handalian <handalm@amazon.com>
(cherry picked from commit ca74aac)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Merging #8709 (5624e56) into 2.x (907934a) will increase coverage by 0.03%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##                2.x    #8709      +/-   ##
============================================
+ Coverage     70.67%   70.71%   +0.03%     
- Complexity    57334    57372      +38     
============================================
  Files          4758     4758              
  Lines        271560   271563       +3     
  Branches      40031    40031              
============================================
+ Hits         191937   192024      +87     
+ Misses        63162    63071      -91     
- Partials      16461    16468       +7     
Impacted Files Coverage Δ
.../main/java/org/opensearch/index/IndexSettings.java 86.03% <0.00%> (-0.44%) ⬇️
...in/java/org/opensearch/index/shard/IndexShard.java 69.08% <100.00%> (-0.04%) ⬇️

... and 451 files with indirect coverage changes

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      2 org.opensearch.search.SearchWeightedRoutingIT.testStrictWeightedRoutingWithCustomString
      2 org.opensearch.remotestore.SegmentReplicationRemoteStoreIT.classMethod
      1 org.opensearch.remotestore.SegmentReplicationRemoteStoreIT.testScrollWithConcurrentIndexAndSearch
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

@mch2 mch2 merged commit 04fa5b6 into 2.x Jul 15, 2023
9 of 33 checks passed
@mch2 mch2 deleted the backport/backport-8173-to-2.x branch July 15, 2023 00:44
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