hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Reopened) (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HDFS-2609) DataNode.getDNRegistrationByMachineName can probably be removed or simplified
Date Sat, 31 Mar 2012 22:48:26 GMT

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

Todd Lipcon reopened HDFS-2609:
-------------------------------

    
> DataNode.getDNRegistrationByMachineName can probably be removed or simplified
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-2609
>                 URL: https://issues.apache.org/jira/browse/HDFS-2609
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: data-node
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Eli Collins
>
> I noticed this while working on HDFS-1971: The {{getDNRegistrationByMachineName}} iterates
over block pools to return a given block pool's registration object based on its {{machineName}}
field. But, the machine name for every BPOfferService is identical - they're always constructed
by just calling {{DataNode.getName}}. All of the call sites for this function are from tests,
as well. So, maybe it's not necessary, or at least it might be able to be simplified or moved
to a test method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message