Skip to content

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

Merged
merged 2 commits into from
Aug 10, 2021

Conversation

frotsch
Copy link
Contributor

@frotsch frotsch commented Aug 8, 2021

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

  • [ x] All tests pass
  • [x ] 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.

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success d2111f6

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed d2111f6

@opensearch-ci-bot
Copy link
Collaborator

✅   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
Copy link
Member

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 ;)

Copy link
Contributor Author

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]>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed e3c4f54

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success e3c4f54

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success e3c4f54

@dblock
Copy link
Member

dblock commented Aug 10, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success e3c4f54
Log 378

Reports 378

@dblock dblock merged commit c34f9ab into opensearch-project:main Aug 10, 2021
@dblock dblock added the backport PRs or issues specific to backporting features or enhancments label Aug 10, 2021
@dblock
Copy link
Member

dblock commented Aug 10, 2021

Merged, could you please backport PR this one into 1.1 @frotsch?

@frotsch
Copy link
Contributor Author

frotsch commented Aug 10, 2021

How exactly can I backport the PR? @dblock

@dblock
Copy link
Member

dblock commented Aug 10, 2021

Make a new branch off 1.x, cherry pick the merged commit on it and make a PR into 1.x. Thanks!

frotsch added a commit to frotsch/OpenSearch that referenced this pull request Aug 10, 2021
…nsearch-project#1060)

* Avoid crashing on using the index.lifecycle.name in the API body

Signed-off-by: frotsch <[email protected]>
dblock pushed a commit that referenced this pull request Aug 10, 2021
…) (#1070)

* Avoid crashing on using the index.lifecycle.name in the API body

Signed-off-by: frotsch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants