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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/05/19 12:56:00 UTC

[jira] [Updated] (HDFS-17789) Add NormalLowRedundancyBlocksCount and BadlyDistributedBlocksCount to getStats() NN RPC

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

ASF GitHub Bot updated HDFS-17789:
----------------------------------
    Labels: pull-request-available  (was: )

> Add NormalLowRedundancyBlocksCount and BadlyDistributedBlocksCount to getStats() NN RPC
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-17789
>                 URL: https://issues.apache.org/jira/browse/HDFS-17789
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: namenode
>            Reporter: Aswin M Prabhu
>            Assignee: Aswin M Prabhu
>            Priority: Trivial
>              Labels: pull-request-available
>
> At LinkedIn, we use the stats from the getStats() NN RPC call to evaluate safety checks that ensure that various maintenance ops are safe to run.
> Due to a migration we are undertaking, the badly distributed block count is very high for the cluster undergoing migration. This is not a safety problem. However, to distinguish it from the actual low redundancy block count, we need both these values to be available from the getStats() RPC. The current low redundancy blocks count value available is the [sum|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/LowRedundancyBlocks.java#L138-L146] of all the different types of low redundancy blocks, including normal low redundancy blocks and badly distributed blocks.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org