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 "Vinayakumar B (JIRA)" <ji...@apache.org> on 2016/02/01 08:52:40 UTC
[jira] [Updated] (HDFS-9566) Remove expensive
'BlocksMap#getStorages(Block b, final DatanodeStorage.State state)' method
[ https://issues.apache.org/jira/browse/HDFS-9566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinayakumar B updated HDFS-9566:
--------------------------------
Summary: Remove expensive 'BlocksMap#getStorages(Block b, final DatanodeStorage.State state)' method (was: Remove expensive getStorages method)
> Remove expensive 'BlocksMap#getStorages(Block b, final DatanodeStorage.State state)' method
> -------------------------------------------------------------------------------------------
>
> Key: HDFS-9566
> URL: https://issues.apache.org/jira/browse/HDFS-9566
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Affects Versions: 3.0.0, 2.8.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: HDFS-9566.branch-2.patch, HDFS-9566.patch
>
>
> HDFS-5318 added a {{BlocksMap#getStorages(Block, State)}} which is based on iterables and predicates. The method is very expensive compared to a simple comparison/continue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)