Hexiaoqiao commented on PR #5170:
URL: https://github.com/apache/hadoop/pull/5170#issuecomment-1336418882

   > > Now that, this case only happen when invoke addBlockPool() and 
CachingGetSpaceUsed#used < 0, I have an idea, is it possible to add a switch, 
not add lock when ReplicaCachingGetSpaceUsed#init() at first time , and add it 
at other times
   > 
   > This makes sense to me, get replicas usage message no need strong 
consistency.@Hexiaoqiao any suggestion?
   
   Thanks for the detailed discussions. +1. it seems good to me. 
   BTW, I try to dig PR to fix this bug but no found. It just at out internal 
branch which not refresh space used at init stage. And refresh-used is one 
complete async thread (at CachingGetSpaceUsed) , thus it could not dead lock 
when DataNode instance restart. Thanks.


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