hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bibin A Chundatt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8609) Dead Code in DFS Util for DFSUtil#substituteForWildcardAddress
Date Tue, 16 Jun 2015 05:42:02 GMT
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)

Mime
View raw message