Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2596

Zookeeper.c - gethostname drops subdomain returning only partial FQDN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • c client
    • None
    • RedHat Enterprise Server 7.2

    Description

      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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            blkdragn Scott Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: