The GitHub Actions job "Build" on jackrabbit-oak.git/trunk has succeeded.
Run started by GitHub user rishabhdaim (triggered by rishabhdaim).

Head commit for run:
d6d5c6f0c38b23118d430edff95d947ad9469ffd / Rishabh Kumar 
<[email protected]>
OAK-12214 : segment cache notify L2 on L1 hits to keep frequency/recency 
accurate (#2903)

* OAK-12214 : segment cache: notify L2 on L1 hits to keep frequency/recency 
accurate

L1 memoization in SegmentId serves most segment reads without touching L2.
This means W-TinyLFU admission sketches and LRU recency lists never see hot
segments, and the eviction policy treats them as cold — potentially evicting
them under pressure.

SegmentCache.recordHit(SegmentId) now calls cache.getIfPresent(id) to
register the access with the L2 backing store. The behaviour is controlled
by feature toggle FT_NOTIFY_L2_OAK-12214 (enabled by default). Also adds
cleanUp() to flush pending Caffeine maintenance before reading eviction stats.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* OAK-12214 : notify L2 caffeine cache if we got a hit on L1 to keep its 
internal frequency updated such that we don't evict hot segments

* OAK-12214 : removed cleanUp() method, not needed

* OAK-12214 : write test cases to reproduce the behaviour consistently

* OAK-12214 : addressed review comments

* OAK-12214 : updated javadocs to reflect correct oak version

* OAK-12214 : renamed FT

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>

Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/26084117917

With regards,
GitHub Actions via GitBox

Reply via email to