-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Updated the validation for search only replica settings #17093
Updated the validation for search only replica settings #17093
Conversation
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
❕ Gradle check result for f91ad85: 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 #17093 +/- ##
============================================
+ Coverage 72.36% 72.42% +0.06%
- Complexity 65733 65800 +67
============================================
Files 5318 5318
Lines 305674 305673 -1
Branches 44349 44349
============================================
+ Hits 221197 221391 +194
+ Misses 66341 66172 -169
+ Partials 18136 18110 -26 ☔ View full report in Codecov by Sentry. |
server/src/test/java/org/opensearch/cluster/metadata/MetadataCreateIndexServiceTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
❌ Gradle check result for 5ffbe1e: 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: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
❕ Gradle check result for cd9c6bc: 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. |
@mch2 @vinaykpud @mgodwan Does this PR relate to the flakiness seen in MetadataCreateIndexService tests? #17291 |
throw new IllegalArgumentException( | ||
"To set " + SETTING_NUMBER_OF_SEARCH_REPLICAS + ", " + SETTING_REMOTE_STORE_ENABLED + " must be set to true" | ||
); | ||
} | ||
builder.put(SETTING_NUMBER_OF_SEARCH_REPLICAS, INDEX_NUMBER_OF_SEARCH_REPLICAS_SETTING.get(requestSettings)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naive question as I'm not familiar with this code. This looks like a functional change to not set this on the builder anymore. Why is this not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though it looks like we removed something, keeping this statement actually sets SETTING_NUMBER_OF_SEARCH_REPLICAS
to 0
.
I'll check the tests and failures to confirm.
Description
In this PR we are updating a validation check when there is search replica settings exist in the indexSettings.
indexSettings
gets created based on the request settings and template settings. So updating this part of the code actually enables index templates to configure search replicasRelated Issues
Resolves #17033
Related #15306
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.