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-1368) Add a block counter to DatanodeDescriptor
Date Tue, 05 Oct 2010 20:47:35 GMT

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

Hudson commented on HDFS-1368:

Integrated in Hadoop-Hdfs-trunk-Commit #406 (See [https://hudson.apache.org/hudson/job/Hadoop-Hdfs-trunk-Commit/406/])

> Add a block counter to DatanodeDescriptor
> -----------------------------------------
>                 Key: HDFS-1368
>                 URL: https://issues.apache.org/jira/browse/HDFS-1368
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: name-node
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.22.0
>         Attachments: blockCounter.patch
> Many of time, we need to count the total number of blocks in a datanode by calling DatanodeDescriptor#numBlocks().
It has to traverse the block list to get the counter, which may not be trivial if there are
millions of blocks. Adding a counter for each datanode does not cost much space but help save
CPU processing time.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message