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-8792) Use LightWeightHashSet for BlockManager#postponedMisreplicatedBlocks
Date Thu, 30 Jul 2015 08:45:04 GMT

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

Yi Liu updated HDFS-8792:
-------------------------
    Attachment: HDFS-8792.002.patch

Update a new patch. The new patch also improves {{excessReplicateMap}}, which we don't need
{{sort}}, so no need to use a {{TreeMap}}.

{code}
   public final Map<String, LightWeightLinkedSet<BlockInfo>> excessReplicateMap
=
-    new TreeMap<>();
+    new HashMap<>();
{code}

> Use LightWeightHashSet for BlockManager#postponedMisreplicatedBlocks
> --------------------------------------------------------------------
>
>                 Key: HDFS-8792
>                 URL: https://issues.apache.org/jira/browse/HDFS-8792
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>         Attachments: HDFS-8792.001.patch, HDFS-8792.002.patch
>
>
> {{LightWeightHashSet}} requires fewer memory than java hashset. 
> Furthermore, for {{excessReplicateMap}}, we can use {{HashMap}} instead of {{TreeMap}}
instead, since no need to sort. 



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

Mime
View raw message