You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yi Liu (JIRA)" <ji...@apache.org> on 2015/07/17 10:48:04 UTC
[jira] [Created] (HDFS-8794) Improve CorruptReplicasMap
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)