You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Scott Thompson (JIRA)" <ji...@apache.org> on 2016/09/20 21:12:20 UTC
[jira] [Resolved] (ZOOKEEPER-2596) Zookeeper.c - gethostname drops
subdomain returning only partial FQDN
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Thompson resolved ZOOKEEPER-2596.
---------------------------------------
Resolution: Invalid
Issue appeared within Apache NiFi built-in zookeeper instance. Problem did not replicate with stand-alone installation of zookeeper. Will report this issue to NiFi JIRA.
> Zookeeper.c - gethostname drops subdomain returning only partial FQDN
> ---------------------------------------------------------------------
>
> Key: ZOOKEEPER-2596
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2596
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Environment: RedHat Enterprise Server 7.2
> Reporter: Scott Thompson
> Priority: Minor
>
> Nodes fail to connect when a sub-domain is present in the FQDN.
> The sub-domain is dropped from the hostname string when calling gethostname in zookeeper.c.
> machine.sub.domain.com
> becomes
> machine.domain.com
> #ifdef HAVE_GETHOSTNAME
> gethostname(buf, sizeof(buf));
> LOG_INFO(LOGCALLBACK(zh), "Client environment:host.name=%s", buf);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)