Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If a hostname resolves to multiple IP addresses and connecting to the first IP failed, the client will attempt to connect to the other IP's instead of failing. Based on the common expectation, this is what is expected.
  • If a hostname resolves to a single IP address and connecting to it failed, then the connection will fail.
  • The value "use_first_dns_ip" will be marked as deprecated because of the above reason. And this value will be removed in version 3.0.


Please note that the concern about breaking SSL hostname verification raised in KIP-235 does not apply to this KIP because this KIP does not propose to modify ClientUtils#parseAndValidateAddresses. This KIP is proposing to only modify ClientUtils#resolve, which is used in ClusterConnectionStates#currentAddress, which is then used in NetworkClient#initiateConnect to establish the socket connection to the broker. In other words, this KIP only change the behaviour of resolving address to the IP address used by the socket to connect to the broker.

...