liubingxing opened a new pull request, #4943:
URL: https://github.com/apache/hadoop/pull/4943

   In #DatanodeAdminBackoffMonitor.scanDatanodeStorage, it uses a read lock to 
protect the function #isBlockReplicatedOk.
   
   But we found that the function #isBlockReplicatedOk may update the 
#neededReconstruction under certain conditions.
   
   
![image](https://user-images.githubusercontent.com/2844826/192719789-b9e2a572-9607-4569-8ac3-dba7680e200b.png)
   
   
   Should we replace the read lock with write lock?


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