DCS looks for "." in hostname when dcs.dns.interface is specified

Bug #1442402 reported by Matt Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
Critical
Matt Brown

Bug Description

This method below always looks for "." in InetAdress hostname. Need to remove the check so systems that return short hostnames that don't contain any "." will work.

    public void getCanonicalHostName(NetworkInterface ni, InetAddress inet)
            throws Exception {
        if (inet.getCanonicalHostName().contains(".")) {
        intHostAddress = extHostAddress = inet.getHostAddress();
        canonicalHostName = inet.getCanonicalHostName();
        LOG.info("Using interface [" + ni.getDisplayName() + ","
                + canonicalHostName + "," + extHostAddress + "]");
        ia = inet;
        } }

Matt Brown (mattbrown-2)
Changed in trafodion:
status: New → In Progress
Revision history for this message
Trafodion-Gerrit (neo-devtools) wrote : Fix proposed to dcs (master)

Fix proposed to branch: master
Review: https://review.trafodion.org/1487

Revision history for this message
Trafodion-Gerrit (neo-devtools) wrote : Fix merged to dcs (master)

Reviewed: https://review.trafodion.org/1487
Committed: https://github.com/trafodion/dcs/commit/0e928ab0aa3d6902381eb13e3de6bd57c05f9848
Submitter: Trafodion Jenkins
Branch: master

commit 0e928ab0aa3d6902381eb13e3de6bd57c05f9848
Author: matbrown <email address hidden>
Date: Thu Apr 9 23:15:36 2015 +0000

    Removed check for period in FQDN

    When property dcs.dns.interface is specified some systems return
    only the short DNS name. DCS assume that returned name always
    contains at least one "." This caused a null value to be inserted
    into zookeeper nodes for the hostname.

    closes bug: #1442402

    Change-Id: Idb9abd3c63bba1293adb4797902f7128e3c3f07c

Changed in trafodion:
status: In Progress → Fix Committed
Matt Brown (mattbrown-2)
Changed in trafodion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.