hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junping Du (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8144) pseudoSortByDistance in NetworkTopology doesn't work properly if no local node and first node is local rack node
Date Tue, 06 Mar 2012 17:09:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223430#comment-13223430
] 

Junping Du commented on HADOOP-8144:
------------------------------------

The patch fix the issue when there is no local node and local rack node is happen to be position
0. The updated Unit Test with testPseudoSortByDistance can show this fix.
                
> pseudoSortByDistance in NetworkTopology doesn't work properly if no local node and first
node is local rack node
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8144
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8144
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.23.0, 1.0.0
>            Reporter: Junping Du
>            Priority: Minor
>         Attachments: HADOOP-8144-1.patch
>
>
> pseudoSortByDistance in NetworkTopology.java should sort nodes according to its distance
with reader as local node, local rack node, ... 
> But if there is no local node with reader in nodes and the first node is local rack node
with reader, then it will put a random node at position 0.

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