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

   
   
   > `storageInfo.blockReportCount`在第 2932 
行更新,这意味着`storageInfo.getBlockReportCount() > 0`只有在第 2924 行成功处理该存储的第一个报告后,该情况才成立。
   > 
   > 
https://github.com/apache/hadoop/blob/7ba2bd63058b97dc125ff19183c6ed2dbf1cfac0/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java#L2916-L2932
   > 
   > 
   > 所以我不明白在没有处理第一个报告的情况下,流程如何到达第 2912 行?您介意添加一个单元测试以使问题更清晰吗?
   > 
https://github.com/apache/hadoop/blob/7ba2bd63058b97dc125ff19183c6ed2dbf1cfac0/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java#L2905-L2914
   @zhangshuyan0 Sorry for replying to you for so long. I need some time to 
complete the unit test of this modification. Sorry again
   
   


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