ThinkerLei commented on code in PR #6335:
URL: https://github.com/apache/hadoop/pull/6335#discussion_r1421226464
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java:
##########
@@ -3325,8 +3329,8 @@ private BlockInfo processReportedBlock(
// Block is on the NN
LOG.debug("In memory blockUCState = {}", ucState);
- // Ignore replicas already scheduled to be removed from the DN
- if(invalidateBlocks.contains(dn, block)) {
+ // Ignore replicas already scheduled to be removed from the DN or had been
deleted
+ if (invalidateBlocks.contains(dn, block) || storedBlock.isDeleted()) {
Review Comment:
Is it ok to judge storedBlock.isDeleted only?
--
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]