-
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
Register UnmodifiableOnRestore settings #17121
Register UnmodifiableOnRestore settings #17121
Conversation
Signed-off-by: AnnTian Shao <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17121 +/- ##
============================================
- Coverage 72.30% 72.25% -0.06%
+ Complexity 65482 65398 -84
============================================
Files 5309 5309
Lines 304324 304350 +26
Branches 44132 44141 +9
============================================
- Hits 220056 219903 -153
- Misses 66259 66335 +76
- Partials 18009 18112 +103 ☔ View full report in Codecov by Sentry. |
This PR is more of a code refactor to register previously unregistered settings with |
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.
Just a few questions on the tests, thanks @anntians !
...r/src/internalClusterTest/java/org/opensearch/action/admin/indices/create/CreateIndexIT.java
Show resolved
Hide resolved
client/rest-high-level/src/test/java/org/opensearch/client/IndicesClientIT.java
Show resolved
Hide resolved
client/rest-high-level/src/test/java/org/opensearch/client/IndicesClientIT.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/metadata/IndexMetadata.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/common/settings/IndexScopedSettings.java
Show resolved
Hide resolved
5734f23
to
d2a894e
Compare
Signed-off-by: AnnTian Shao <[email protected]>
d2a894e
to
d2b4139
Compare
client/rest-high-level/src/test/java/org/opensearch/client/IndicesClientIT.java
Outdated
Show resolved
Hide resolved
Signed-off-by: AnnTian Shao <[email protected]>
server/src/test/java/org/opensearch/index/IndexSettingsTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: AnnTian Shao <[email protected]>
❌ Gradle check result for 8576e43: 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? |
Description
This PR builds on another PR. In the other PR we added a new Setting property
UnmodifiableOnRestore
to prevent settings from being modified on restore, but we weren't able to add the property to several settings because they were not yet registered. So this PR registers those settings withUnmodifiableOnRestore
Related Issues
Resolves Issue 2334 in KNN repository: opensearch-project/k-NN#2334
#17019
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.