Skip to content

Conversation

@original-brownbear
Copy link
Contributor

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

backport of #47451

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 original-brownbear added :Distributed Coordination/Network Http and internode communication implementations backport labels Oct 3, 2019
@elasticmachine
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed Coordination/Network Http and internode communication implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants