[ 
https://issues.apache.org/jira/browse/HDFS-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

surendra singh lilhore reassigned HDFS-8609:
--------------------------------------------

    Assignee: surendra singh lilhore

> 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
>            Assignee: surendra singh lilhore
>            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