ben-manes commented on PR #17879:
URL: https://github.com/apache/kafka/pull/17879#issuecomment-2499590407

   > So the improvement in version >= 3.1.2 is to avoid hash DOS attack.
   
   Just to clarify that was an example for why the test could be unstable with 
the existing version. The protection has been in place since v2.2.7.
   
   The commits, 
https://github.com/ben-manes/caffeine/commit/25b7d17b1a246a63e4991d4902a2ecf24e86d234
 and 
https://github.com/ben-manes/caffeine/commit/46cd5833aea8190bd9cc656286f58efbde91a792,
 show that the intent was to better handle when an entry exceeds the capacity 
of the cache or a region to avoid unnecessary evictions. The walking of the LRU 
lists changed a bit, perhaps a bug fix iirc (I think there was a previous 
LRU/MRU mixup), so the evaluation changed slightly.


-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to