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] [Updated] (HDFS-8794) Improve CorruptReplicasMap#corruptReplicasMap
Date Tue, 21 Jul 2015 01:32:05 GMT

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

Yi Liu updated HDFS-8794:
-------------------------
          Resolution: Fixed
        Hadoop Flags: Reviewed
       Fix Version/s: 2.8.0
    Target Version/s: 2.8.0  (was: 2.7.1)
              Status: Resolved  (was: Patch Available)

Committed to trunk and branch-2, thanks for [~arpitagarwal] review.

> 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