Skip to content
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

Fix: delegating from deprecated setting #13481

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Dec 8, 2021

Release notes

Fix Logstash unable to start when using deprecated setting http.enabled

What does this PR do?

Fixes a regression introduced in #13308 when setting http.enabled.

Why is it important/What is the impact to the user?

Users can rename the setting (api.enabled) and not use the deprecated one, however need to be aware and this impacts the expectation for a smooth upgrade process in 7.x

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

Related issues

this has only been a concern for settings such as Boolean
Copy link
Member

@yaauie yaauie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to fix the issue 👍🏼

It's not clear to me why I needed to route through wrapped.value, or if it was an explicit attempt to invoke the canonical proxy setting's validate function (which is protected, but should be the same as the wrapped setting's validate since they are clones of each other.

Good catch, though.

@kares kares merged commit 32b8739 into elastic:main Dec 8, 2021
kares added a commit to kares/logstash that referenced this pull request Dec 8, 2021
kares added a commit to kares/logstash that referenced this pull request Dec 8, 2021
@kares kares added the v8.0.0 label Dec 8, 2021
@jsvd jsvd removed the v7.16.1 label Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logstash is unable to start after upgrading to version 7.16.0
4 participants