hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kihwal Lee (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-7433) DatanodeManager#datanodeMap should be a HashMap, not a TreeMap, to optimize lookup performance
Date Tue, 20 Jan 2015 15:24:36 GMT

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

Kihwal Lee edited comment on HDFS-7433 at 1/20/15 3:24 PM:
-----------------------------------------------------------

The precommit did not run, so I just kicked it. Although it is a comment only change over
the previous patch, a new precommit run will be nice since the last run was over a month ago.


was (Author: kihwal):
The precommit did not run. Although it is a comment only change over the previous patch, a
new precommit run will be nice since the last run was over a month ago.

> DatanodeManager#datanodeMap should be a HashMap, not a TreeMap, to optimize lookup performance
> ----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-7433
>                 URL: https://issues.apache.org/jira/browse/HDFS-7433
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 2.0.0-alpha, 3.0.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>            Priority: Critical
>         Attachments: HDFS-7433.patch, HDFS-7433.patch, HDFS-7433.patch
>
>
> The datanode map is currently a {{TreeMap}}.  For many thousands of datanodes, tree lookups
are ~10X more expensive than a {{HashMap}}.  Insertions and removals are up to 100X more expensive.



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

Mime
View raw message