[ 
https://issues.apache.org/jira/browse/SOLR-12727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613507#comment-16613507
 ] 

Kevin Risden commented on SOLR-12727:
-------------------------------------

So the change in Zookeeper 3.4.13 definitely caused the change from 127.0.0.1 
-> localhost. Since 127.0.0.1 resolves to localhost, the new InetSocketAddress 
created internally to the ZK client populates localhost for the getHostName() 
call. Previously the InetSocketAddress kept the existing 127.0.0.1 and 
getHostName() would return 127.0.0.1. ZOOKEEPER-1467 is related to the hostname 
part.

I would guess that Zookeeper 3.4.13 would break almost all things using 
SASL/Kerberos that use ip addresses (like 127.0.0.1) instead of hostnames. For 
almost all the Kerberos stuff I've done, we have relied on hostnames instead of 
IP addresses. I am looking to see if there is a way to avoid the DNS lookup for 
127.0.0.1.

Is there a reason that this was setup with 127.0.0.1 originally? Any reason not 
to use localhost?

> Upgrade ZooKeeper dependency to 3.4.13
> --------------------------------------
>
>                 Key: SOLR-12727
>                 URL: https://issues.apache.org/jira/browse/SOLR-12727
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 7.4
>            Reporter: Shawn Heisey
>            Assignee: Erick Erickson
>            Priority: Major
>         Attachments: SOLR-12727.patch
>
>
> Upgrade ZK dependency to 3.4.13.  This fixes ZOOKEEPER-2184 which will make 
> the ZK client re-resolve the server hostnames when a connection fails.  This 
> will fix issues where a failed ZK container is replaced with a new one that 
> has a different IP address and DNS gets updated with the new address.
> Typically these upgrades do not require code changes, but that should be 
> verified.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to