zhangshuyan0 commented on PR #5855:
URL: https://github.com/apache/hadoop/pull/5855#issuecomment-1661604537

   > You're talking about the first case I mentioned, which is fine,
   The problem is the second case, where the namenode is not restarted, but the 
namenode is in safe mode for some reason, and this logic will also be executed, 
and since this is not the first FBR, blockReportCount will always be greater 
than 0.
   
   @Tre2878 Sorry I cannot understand you clearly. The condition here is 
`namesystem.isInStartupSafeMode()` rather than `namesystem.isInSafeMode()`, 
which means the namenode has just been restart. How could the namenode in safe 
mode for some other reason?
   
   
https://github.com/apache/hadoop/blob/5aee0e0c0a2c1d4181e92a20b311885a5c552121/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java#L2905-L2907


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to