freemandealer opened a new pull request, #39814:
URL: https://github.com/apache/doris/pull/39814

   Scenarios where issues occur:
   - TTL with LRU eviction enabled (config::enable_ttl_cache_evict_using_lru = 
true)
   - TTL's try_reserve_for_ttl_without_lru encounters a limitation set by 
config::max_ttl_cache_ratio = 90%
   - LRU begins the eviction process. However, the amount of eviction is 
determined solely by the condition !is_overflow(), which does not consider the 
90% limitation. This leads to a premature return of a successful reserve, 
resulting in the overall TTL exceeding the 90% limit.
   
   Modification method:
   For the TTL and LRU eviction quantities, in addition to checking for 
!is_overflow, the condition must also satisfy the restriction set by 
config::max_ttl_cache_ratio.
   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   


-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to