hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9032) Small improvement for DatanodeManager#sortLocatedBlocks
Date Mon, 07 Sep 2015 07:35:45 GMT
Yi Liu created HDFS-9032:
----------------------------

             Summary: 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
            Assignee: Yi Liu
            Priority: Minor


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)

Mime
View raw message