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

   > > 你说的是我提到的第一种情况,这很好,
   > > 问题是第二种情况,namenode没有重启,但是namenode由于某种原因处于安全模式,这个逻辑也会被执行,并且由于这不是第一个 
FBR,blockReportCount 将始终大于 0。
   > 
   > 
@Tre2878抱歉我无法清楚地理解你。这里的条件是`namesystem.isInStartupSafeMode()`而不是`namesystem.isInSafeMode()`,这意味着名称节点刚刚重新启动。namenode怎么会因为其他原因而处于安全模式呢?
   > 
   > 
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
   
   I'm sorry,It is my negligence.there's nothing wrong with me


-- 
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]

Reply via email to