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

es.http.cname_in_publish_address deprecation warning emitted even if not set #47436

Closed
DaveCTurner opened this issue Oct 2, 2019 · 8 comments
Assignees
Labels
>bug :Distributed Coordination/Network Http and internode communication implementations

Comments

@DaveCTurner
Copy link
Contributor

In #45616 we added a deprecation warning to encourage users to remove the es.http.cname_in_publish_address property that we added to support BWC across a 6.x/7.x upgrade. However this warning is emitted whenever es.http.cname_in_publish_address is true, which is the default, so it's emitted even if the property is unset.

Relates https://discuss.elastic.co/t/deprecation-warnings-since-the-upgrade-to-7-4-0/201917/3

@DaveCTurner DaveCTurner added >bug :Distributed Coordination/Network Http and internode communication implementations labels Oct 2, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Network)

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this issue Oct 2, 2019
Since the property defaulted to `true` this deprecation logging
runs every time unless its set to `false` manually (in which case
it should've also logged but didn't).

Closes elastic#47436
original-brownbear added a commit that referenced this issue Oct 3, 2019
Since the property defaulted to `true` this deprecation logging
runs every time unless its set to `false` manually (in which case
it should've also logged but didn't).
I didn't add a tests and removed the tests we had in `7.x` that
covered this logging. I did move the check out of the `if (InetAddresses.isInetAddress(hostString) == false) {` condition so this is sort-of covered by the REST tests.
IMO, any unit-test of this would be somewhat redundant and would've forced
adding a field that just indicates that the deprecated property was used to
every instance which seemed pointless.

Closes #47436
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this issue Oct 3, 2019
Since the property defaulted to `true` this deprecation logging
runs every time unless its set to `false` manually (in which case
it should've also logged but didn't).
I didn't add a tests and removed the tests we had in `7.x` that
covered this logging. I did move the check out of the `if (InetAddresses.isInetAddress(hostString) == false) {` condition so this is sort-of covered by the REST tests.
IMO, any unit-test of this would be somewhat redundant and would've forced
adding a field that just indicates that the deprecated property was used to
every instance which seemed pointless.

Closes elastic#47436
original-brownbear added a commit that referenced this issue Oct 3, 2019
…7497)

Since the property defaulted to `true` this deprecation logging
runs every time unless its set to `false` manually (in which case
it should've also logged but didn't).
I didn't add a tests and removed the tests we had in `7.x` that
covered this logging. I did move the check out of the `if (InetAddresses.isInetAddress(hostString) == false) {` condition so this is sort-of covered by the REST tests.
IMO, any unit-test of this would be somewhat redundant and would've forced
adding a field that just indicates that the deprecated property was used to
every instance which seemed pointless.

Closes #47436
@original-brownbear
Copy link
Member

Fixed in #47451 and #47497

@baunz
Copy link

baunz commented Nov 28, 2019

Hi!

Is this really fixed? We just updated to 7.4.2 from 7.4.0 but still see multiple messages like this per second in our deprecation log even if we don't have this property set in our elasticsearch.yml

Greetings,
Johannes

@original-brownbear
Copy link
Member

@baunz that property should be (if it's set) in your jvm.options not elasticsearch.yml. Could you double-check there please?

@jockjiang
Copy link

I have the same issue with 7.4.2, and I'm sure I don't set es.http.cname_in_publish_address property.

@original-brownbear
Copy link
Member

@jockjiang could you check the nodes stats API to check the actual JVM options used by your node(s)? If the system property is still in there, it's being picked up from somewhere in your system. It seems unlikely that this is still not fixed in 7.4.2 or that it's a system specific issue for you that isn't the result of the system property leaking in from somehwere.

@jockjiang
Copy link

@original-brownbear , I attached the result from the API. please review. I find "-Des.http.cname_in_publish_address=true" in the JVM options.
node_jvm.txt

@original-brownbear
Copy link
Member

@jockjiang yea so this really looks like you have the option set in your configs. Probably in the jvm.options in your /etc/elasticsearch folder. I'd look into there. If you're having trouble working out the issue from there, I'd suggest asking a question on our discuss forums as why generally reserve Github for issue reporting and feature requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Coordination/Network Http and internode communication implementations
Projects
None yet
Development

No branches or pull requests

6 participants