You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/10/08 07:53:10 UTC

[GitHub] [ozone] ChenSammi commented on pull request #2694: HDDS-5791. Use Guava Cache to replace current ResourceLimitCache for stateMachineDataCache

ChenSammi commented on pull request #2694:
URL: https://github.com/apache/ozone/pull/2694#issuecomment-938425499


   > 
   > 
   > @ChenSammi Thanks for working on this! Please find my comments below.
   > 
   >     1. Guava cache may not provide us the consistency guarantees we need for stateMachineData cache. For instance we must make sure that cache entry is evicted only after majority servers have written the data. But by limiting the number of entries in the guava cache any future addition of entries would lead to eviction of older entries. Ref: https://issues.apache.org/jira/browse/HDDS-2542 - We had seen a race condition earlier between read and write stateMachineData
   > 
   >     2. The expiry time of 15mins after access might lead to retention of chunks for a longer time. This could increase the memory footprint of datanode.
   
   
   @lokeshj1703 , thanks for the feedback.  Didn't notice that GuavaCache is used before HDDS-2542.  
   With read/writeStateMachineData race condition resolved by HDDS-5619,  it's a good time to rethink if GuavaCache is safe to use now. 
   Guava cache with expire time will increae the memory footprint, this is a real cost when using Guava cache,  with the benefit of keep the data in cache as long as possbile to speed up the data write. 


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org