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

Yi Liu updated HDFS-9032:
-------------------------
    Resolution: Invalid
      Assignee:     (was: Yi Liu)
        Status: Resolved  (was: Patch Available)

We also need to change the logic of lastActiveIndex and to check how many 
inactive nodes. Mark as invalid, since it doesn't make sense to change it and 
no improvement here.

> Small improvement for DatanodeManager#sortLocatedBlocks
> -------------------------------------------------------
>
>                 Key: HDFS-9032
>                 URL: https://issues.apache.org/jira/browse/HDFS-9032
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Yi Liu
>            Priority: Minor
>         Attachments: HDFS-9032.001.patch
>
>
> This is a minor improvement:
> In sortLocatedBlocks, (in most cases) if locations of located block don't 
> contain decommissioned/stale datanode, no need to call Arrays.sort.
> Also we can make the comparator as the class variable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to