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

Add setting to use document replication for system indices. #802

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

Rishikesh1159
Copy link
Member

Description

This PR adds settings for system indices to use document replication strategy.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@Rishikesh1159 Rishikesh1159 requested a review from gbbafna as a code owner April 18, 2023 03:26
@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2023

Codecov Report

Merging #802 (81a502b) into main (fcbbfb7) will decrease coverage by 0.49%.
The diff coverage is 100.00%.

❗ Current head 81a502b differs from pull request most recent head 2e55e70. Consider uploading reports for the commit 2e55e70 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #802      +/-   ##
============================================
- Coverage     73.37%   72.88%   -0.49%     
+ Complexity     1006     1003       -3     
============================================
  Files           141      141              
  Lines          4650     4651       +1     
  Branches        521      521              
============================================
- Hits           3412     3390      -22     
- Misses          910      933      +23     
  Partials        328      328              
Impacted Files Coverage Δ
...ication/metadata/store/ReplicationMetadataStore.kt 69.11% <100.00%> (+0.22%) ⬆️

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -265,6 +266,7 @@ class ReplicationMetadataStore constructor(val client: Client, val clusterServic
.put(IndexMetadata.INDEX_AUTO_EXPAND_REPLICAS_SETTING.key, "0-1")
.put(IndexMetadata.INDEX_PRIORITY_SETTING.key, Int.MAX_VALUE)
.put(IndexMetadata.INDEX_HIDDEN_SETTING.key, true)
.put(IndexMetadata.INDEX_REPLICATION_TYPE_SETTING.key, ReplicationType.DOCUMENT) // System Indices should use Document Replication strategy
Copy link
Member

@ankitkala ankitkala Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm that INDEX_REPLICATION_TYPE_SETTING is not behind feature flag for Segment Replication?

Just trying to ensure that this setting is available always.

Copy link
Member Author

@Rishikesh1159 Rishikesh1159 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes INDEX_REPLICATION_TYPE_SETTING is not behind feature flag anymore. We have removed the feature flag in PR: opensearch-project/OpenSearch#7045, you can see this here it is directly added as built in index setting and not gated by any feature flag.

@ankitkala ankitkala merged commit 55b6968 into opensearch-project:main Apr 18, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 18, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 18, 2023
ankitkala pushed a commit that referenced this pull request Apr 18, 2023
)

Signed-off-by: Rishikesh1159 <[email protected]>
(cherry picked from commit 55b6968)

Co-authored-by: Rishikesh Pasham <[email protected]>
ankitkala pushed a commit that referenced this pull request Apr 18, 2023
)

Signed-off-by: Rishikesh1159 <[email protected]>
(cherry picked from commit 55b6968)

Co-authored-by: Rishikesh Pasham <[email protected]>
saikaranam-amazon pushed a commit to saikaranam-amazon/cross-cluster-replication-2 that referenced this pull request May 31, 2023
monusingh-1 added a commit to monusingh-1/ccr-dev that referenced this pull request Aug 22, 2023
monusingh-1 added a commit to monusingh-1/ccr-dev that referenced this pull request Aug 22, 2023
monusingh-1 added a commit that referenced this pull request Aug 22, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 22, 2023
…802)" (#1107)

This reverts commit 55b6968.

Signed-off-by: monusingh-1 <[email protected]>
(cherry picked from commit 9750b78)
monusingh-1 added a commit that referenced this pull request Aug 22, 2023
…802)" (#1107) (#1108)

This reverts commit 55b6968.

Signed-off-by: monusingh-1 <[email protected]>
(cherry picked from commit 9750b78)

Co-authored-by: Monu Singh <[email protected]>
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.

4 participants