comnetwork edited a comment on pull request #3705:
URL: https://github.com/apache/hbase/pull/3705#issuecomment-930871796


   @YutSean , for your PR,  I think one possible problem is if the ` 
BucketCache.evictBlocksByHfileName` is invoked after the 
`BucketCache.cacheBlock` but before the `WriterThread` to invoke 
`BucketCache.doDrain`, then this block could not be evicted right away, but I 
think this is not a big problem, because  :
   1.  This situation is rare.
   2. ` BucketCache.evictBlocksByHfileName`  and `BucketCache.cacheBlock` is 
not strictly synchronized in current code, so current code may also has this 
problem, just the probability is less than after applying your PR.
   3.  This block could be evicted eventually because no RPC referenced it.
   
   So I give +1 at this patch, @Apache9 , What is your opinion?


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


Reply via email to