hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8794) Improve CorruptReplicasMap#corruptReplicasMap
Date Tue, 21 Jul 2015 17:04:06 GMT

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

Hudson commented on HDFS-8794:
------------------------------

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2209 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2209/])
HDFS-8794. Improve CorruptReplicasMap#corruptReplicasMap. (yliu) (yliu: rev d6d58606b8adf94b208aed5fc2d054b9dd081db1)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestCorruptReplicaInfo.java
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/CorruptReplicasMap.java


> Improve CorruptReplicasMap#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
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8794.001.patch, HDFS-8794.002.patch
>
>
> 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