hadoop-hdfs-dev 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-8794) Improve CorruptReplicasMap
Date Fri, 17 Jul 2015 08:48:05 GMT
Yi Liu created HDFS-8794:
----------------------------

             Summary: Improve CorruptReplicasMap
                 Key: HDFS-8794
                 URL: https://issues.apache.org/jira/browse/HDFS-8794
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Yi Liu
            Assignee: Yi Liu


Currently we use {{TreeMap}} for {{corruptReplicasMap}}, actually the only need sorted place
is {{getCorruptReplicaBlockIds}} which is used by test.
So we can use {{HashMap}}.

>From memory and performance view, {{HashMap}} is better than {{TreeMap}}, a simliar optimization
HDFS-7433. Of course we need to make few change to {{getCorruptReplicaBlockIds}}.



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

Mime
View raw message