Github user Vile2539 commented on the issue:

    https://github.com/apache/curator/pull/205
  
    It's been about 4 months, so I'm a bit fuzzy on the exact details.
    
    > The spec of server address is server. = ::[:role];[:], and if 
server.clientAddr is null then it means the client port address is not present. 
The client port address is optional, so the address is still a valid address.
    
    The problem is that EnsembleTracker is getting the connection string for 
itself to Zookeeper. If it receives a config without a valid client port, then 
it can't create a new connection string to that client. Since Zookeeper isn't 
sending the clientPort configured outside of that string (in this case), we 
can't use any of the connection string.
    
    > I think you can just use server.addr which is guaranteed not null, and 
then use getHostAddress to get the hostAddress.
    
    I'm not entirely sure about that. We want to use the server.clientAddr 
ideally - unless it's a wildcard, in which case we use the server.addr. It's 
not about one of them being null, but the clientAddr should be favoured over 
the server.addr (for example - we might have clientAddr set to localhost to 
accept only local connections).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to