Hexiaoqiao commented on code in PR #5735:
URL: https://github.com/apache/hadoop/pull/5735#discussion_r1232990215
##########
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:
The replica should be removed from Datanode, and set NumBytes to
BlockCommand.No_ACK to avoid useless report to NameNode from Datanode when
complete to process it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]