Bibin A Chundatt created HDFS-8609:
--------------------------------------

             Summary: Dead Code in DFS Util for 
DFSUtil#substituteForWildcardAddress
                 Key: HDFS-8609
                 URL: https://issues.apache.org/jira/browse/HDFS-8609
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode
            Reporter: Bibin A Chundatt
            Priority: Minor


Dead code after JDK 1.4

{code}
    otherHttpAddr = DFSUtil.getInfoServerWithDefaultHost(
        otherIpcAddr.getHostName(), otherNode, scheme).toURL();
{code}

In {{DFSUtil#substituteForWildcardAddress}} 
{code}
 if (addr != null && addr.isAnyLocalAddress()) {
...
}
{code}

addr.isAnyLocalAddress() will always return false.

Always the url will be formed with address which is configured  in 
hdfs-site.xml .Same will affect bootStrap from NN and ssl certificate check



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to