[ 
https://issues.apache.org/jira/browse/OAK-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rishabh Daim updated OAK-12425:
-------------------------------
    Description: 
h3. Summary
Migrate oak-store-document caches to Caffeine while keeping maintenance 
synchronous and storing persistent-cache metadata with each cache entry.

h3. Scope
Build on the per-cache maintenance API from OAK-12436 and Segment Tar changes 
from OAK-12438. Replace the DocumentNodeStore cache implementation with 
Caffeine. Keep every Document cache in SYNC mode in this change; Document-level 
ASYNC opt-in is tracked separately by OAK-12437. Store persistence-origin 
metadata in the cache entry itself rather than a coordinated side map. Preserve 
raw values through cache APIs and live maps, weights, statistics, eviction 
behavior, and the persistent file format.

h3. Acceptance Criteria
* All DocumentNodeStore Caffeine caches use SYNC maintenance in this change.
* Entry-owned metadata handles load, replacement, invalidation, eviction and 
persistence without a parallel metadata map or coordination protocol.
* Existing cache API and asMap behavior, weighting, statistics, and 
persistent-cache compatibility remain intact.
* Relevant document-store tests pass under Java 17.
* This work is PR #3176, based on #3186; async opt-in and comparative 
benchmarks are separate dependent PRs.


  was:
h3. Summary
Move oak-store-document's Caffeine-backed caches to synchronous maintenance 
while keeping eviction metadata attached to the exact cache entry.

h3. Scope
PR #3176 migrates DocumentNodeStore to Caffeine and implements entry-owned 
access and persistence-origin metadata. Every Document cache uses SYNC 
maintenance in this step. Document-level ASYNC selection and its production 
integration tests are delivered separately by 
[OAK-12437|https://issues.apache.org/jira/browse/OAK-12437] on top of this 
change.

Preserve raw Cache<K,V> values, live map operations, weighing, statistics, 
persistent serialization and the on-disk format. Remove the separate 
value-retaining metadata map and its coordination protocol.


> oak-store-document should use caffeine by default instead of cachelirs
> ----------------------------------------------------------------------
>
>                 Key: OAK-12425
>                 URL: https://issues.apache.org/jira/browse/OAK-12425
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>
> h3. Summary
> Migrate oak-store-document caches to Caffeine while keeping maintenance 
> synchronous and storing persistent-cache metadata with each cache entry.
> h3. Scope
> Build on the per-cache maintenance API from OAK-12436 and Segment Tar changes 
> from OAK-12438. Replace the DocumentNodeStore cache implementation with 
> Caffeine. Keep every Document cache in SYNC mode in this change; 
> Document-level ASYNC opt-in is tracked separately by OAK-12437. Store 
> persistence-origin metadata in the cache entry itself rather than a 
> coordinated side map. Preserve raw values through cache APIs and live maps, 
> weights, statistics, eviction behavior, and the persistent file format.
> h3. Acceptance Criteria
> * All DocumentNodeStore Caffeine caches use SYNC maintenance in this change.
> * Entry-owned metadata handles load, replacement, invalidation, eviction and 
> persistence without a parallel metadata map or coordination protocol.
> * Existing cache API and asMap behavior, weighting, statistics, and 
> persistent-cache compatibility remain intact.
> * Relevant document-store tests pass under Java 17.
> * This work is PR #3176, based on #3186; async opt-in and comparative 
> benchmarks are separate dependent PRs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to