-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update setting API honors cluster's replica setting as default #14810 #14948
Conversation
❕ Gradle check result for f9e019f: 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. |
❕ Gradle check result for a7d986e: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14948 +/- ##
============================================
- Coverage 72.06% 71.98% -0.08%
+ Complexity 64822 64786 -36
============================================
Files 5308 5308
Lines 302574 302556 -18
Branches 43710 43709 -1
============================================
- Hits 218048 217807 -241
- Misses 66648 66900 +252
+ Partials 17878 17849 -29 ☔ View full report in Codecov by Sentry. |
❌ Gradle check result for b690c89: 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? |
❌ Gradle check result for e16d52f: FAILURE 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? |
Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
❕ Gradle check result for 9286a1b: 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. |
@gaobinlong I resolved conflict and all gradle checks passed |
@chishui could you open a documentation PR about this behavior in this repo? Maybe add it here: dynamic-index-level-index-settings, and we even don't have some documentation about the cluster level setting |
@chishui could you resolve the conflicts again so that we can get this PR merged? Thanks! |
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@gaobinlong as maintainers we can also commit to PRs and the conflict was just the changelog so I resolved it in the GitHub UI. Should be mergeable once CI finishes. |
Thank you @chishui ! |
…#14948) * Update setting API honors cluster's replica setting as default #14810 Signed-off-by: Liyun Xiu <xiliyun@amazon.com> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <xiliyun@amazon.com> --------- Signed-off-by: Liyun Xiu <xiliyun@amazon.com> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com> (cherry picked from commit b3459fd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#14948) (#16287) * Update setting API honors cluster's replica setting as default #14810 * Update changelog & add one more test case --------- (cherry picked from commit b3459fd) Signed-off-by: Liyun Xiu <xiliyun@amazon.com> Signed-off-by: Daniel Widdis <widdis@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> Co-authored-by: Daniel Widdis <widdis@gmail.com>
Thank you @gaobinlong @dbwiddis @reta, I'll create a PR for doc updating later. |
You can create an issue now, so the doc team is aware and can plan PR review workload. :) |
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <xiliyun@amazon.com> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <xiliyun@amazon.com> --------- Signed-off-by: Liyun Xiu <xiliyun@amazon.com> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <xiliyun@amazon.com> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <xiliyun@amazon.com> --------- Signed-off-by: Liyun Xiu <xiliyun@amazon.com> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <xiliyun@amazon.com> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <xiliyun@amazon.com> --------- Signed-off-by: Liyun Xiu <xiliyun@amazon.com> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
Description
This is a fix to #14810.
When user calls
Previous logic is always set
index.number_of_replicas
to 1. This PR changes the default value to the one configured by cluster settingcluster.default_number_of_replicas
and if it's not configured, a same default 1 will be used. It's consistent to the default replica value when creating an index.Related Issues
#14810
Check List
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.