-
Notifications
You must be signed in to change notification settings - Fork 2k
Avoid crashing on using the index.lifecycle.name in the API body #1060
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
Conversation
Signed-off-by: frotsch <[email protected]>
✅ Gradle Wrapper Validation success d2111f6 |
✅ DCO Check Passed d2111f6 |
✅ Gradle Precommit success d2111f6 |
@@ -1044,7 +1044,10 @@ public void validateIndexSettings(String indexName, final Settings settings, fin | |||
for (final String key : settings.keySet()) { | |||
final Setting<?> setting = indexScopedSettings.get(key); | |||
if (setting == null) { | |||
assert indexScopedSettings.isPrivateSetting(key) : "expected [" + key + "] to be private but it was not"; | |||
//https://github.com/opensearch-project/OpenSearch/issues/1019 |
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.
I see a lot of "// see: [github link]" in the code, maybe we can just adopt that "convention"
The fact that there's no space after //
is really hurting my OCD ;)
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.
Done
Signed-off-by: frotsch <[email protected]>
✅ DCO Check Passed e3c4f54 |
✅ Gradle Wrapper Validation success e3c4f54 |
✅ Gradle Precommit success e3c4f54 |
start gradle check |
Merged, could you please backport PR this one into 1.1 @frotsch? |
How exactly can I backport the PR? @dblock |
Make a new branch off |
…nsearch-project#1060) * Avoid crashing on using the index.lifecycle.name in the API body Signed-off-by: frotsch <[email protected]>
…) (#1070) * Avoid crashing on using the index.lifecycle.name in the API body Signed-off-by: frotsch <[email protected]>
Signed-off-by: frotsch [email protected]
Description
Fix OpenSearch process crashing on using the index.lifecycle.name in the API body when asserts are enabled
Issues Resolved
#1019
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.