You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "surendra singh lilhore (JIRA)" <ji...@apache.org> on 2015/06/16 07:43:00 UTC

[jira] [Assigned] (HDFS-8609) Dead Code in DFS Util for DFSUtil#substituteForWildcardAddress

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