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

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

haiyang1987 commented on code in PR #5735:
URL: https://github.com/apache/hadoop/pull/5735#discussion_r1233173275


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java:
##########
@@ -3295,8 +3295,11 @@ private BlockInfo processReportedBlock(
     BlockInfo storedBlock = getStoredBlock(block);
     if(storedBlock == null) {
       // If blocksMap does not contain reported block id,
-      // the replica should be removed from the data-node.
-      toInvalidate.add(new Block(block));
+      // the replica should be removed from the data-node,

Review Comment:
   Sorry for the late reply.
   Noted, I will  update PR today, Thanks.





> Process reported block toInvalidate logic should set the block size to NO_ACK
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-17044
>                 URL: https://issues.apache.org/jira/browse/HDFS-17044
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Haiyang Hu
>            Assignee: Haiyang Hu
>            Priority: Major
>              Labels: pull-request-available
>
> When NameNode processes DataNode increment or full block report, if block is 
> not in the blocks map, it will be added to invalidate and the replica should 
> be removed from the data-node, and the block size should be to set NO_ACK,  
> should be reduce some useless DataNode block reports.



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

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

Reply via email to