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

ASF GitHub Bot commented on HDFS-16879:
---------------------------------------

haiyang1987 opened a new pull request, #5264:
URL: https://github.com/apache/hadoop/pull/5264

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   [HDFS-16879](https://issues.apache.org/jira/browse/HDFS-16879)
   For the block of the ec file run hdfs fsck -blockId xxx can add shows number 
of redundant internal block replicas.
   
   ### For code changes:
   for example: the current blockgroup has 10 live replicas, and it will show 
there are 9 live replicas.
   actually, there is a live replica that should be in the redundant state, can 
add shows "No. of redundant Replica: 1"
   
   ```
   hdfs fsck -blockId blk_-xxx
   
   Block Id: blk_-xxx
   Block belongs to: /ec/file1
   No. of Expected Replica: 9
   No. of live Replica: 9
   No. of excess Replica: 0
   No. of stale Replica: 0
   No. of decommissioned Replica: 0
   No. of decommissioning Replica: 0
   No. of corrupted Replica: 0
   Block replica on datanode/rack: ip-xxx1 is HEALTHY
   Block replica on datanode/rack: ip-xxx2 is HEALTHY
   Block replica on datanode/rack: ip-xxx3 is HEALTHY
   Block replica on datanode/rack: ip-xxx4 is HEALTHY
   Block replica on datanode/rack: ip-xxx5 is HEALTHY
   Block replica on datanode/rack: ip-xxx6 is HEALTHY
   Block replica on datanode/rack: ip-xxx7 is HEALTHY
   Block replica on datanode/rack: ip-xxx8 is HEALTHY
   Block replica on datanode/rack: ip-xxx9 is HEALTHY
   Block replica on datanode/rack: ip-xxx10 is HEALTHY
   ```
   
   




> EC : Fsck -blockId shows number of redundant internal block replicas for EC 
> Blocks
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-16879
>                 URL: https://issues.apache.org/jira/browse/HDFS-16879
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Haiyang Hu
>            Assignee: Haiyang Hu
>            Priority: Major
>
> For the block of the ec file run hdfs fsck -blockId xxx  can add shows number 
> of redundant internal block replicas.
> for example: the current blockgroup has 10 live replicas, and it will show 
> there are 9 live replicas. 
> actually, there is a live replica that should be in the redundant state, can 
> add shows "No. of redundant Replica: 1"
> {code:java}
> hdfs fsck -blockId blk_-xxx
> Block Id: blk_-xxx
> Block belongs to: /ec/file1
> No. of Expected Replica: 9
> No. of live Replica: 9
> No. of excess Replica: 0
> No. of stale Replica: 0
> No. of decommissioned Replica: 0
> No. of decommissioning Replica: 0
> No. of corrupted Replica: 0
> Block replica on datanode/rack: ip-xxx1 is HEALTHY
> Block replica on datanode/rack: ip-xxx2 is HEALTHY
> Block replica on datanode/rack: ip-xxx3 is HEALTHY
> Block replica on datanode/rack: ip-xxx4 is HEALTHY
> Block replica on datanode/rack: ip-xxx5 is HEALTHY
> Block replica on datanode/rack: ip-xxx6 is HEALTHY
> Block replica on datanode/rack: ip-xxx7 is HEALTHY
> Block replica on datanode/rack: ip-xxx8 is HEALTHY
> Block replica on datanode/rack: ip-xxx9 is HEALTHY
> Block replica on datanode/rack: ip-xxx10 is HEALTHY
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to