You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Rishabh Daim (Jira)" <ji...@apache.org> on 2026/04/16 07:47:00 UTC

[jira] [Resolved] (OAK-12158) Migrate oak-segment-tar CacheLIRS-based caches to Oak Cache API

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

Rishabh Daim resolved OAK-12158.
--------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

> Migrate oak-segment-tar CacheLIRS-based caches to Oak Cache API
> ---------------------------------------------------------------
>
>                 Key: OAK-12158
>                 URL: https://issues.apache.org/jira/browse/OAK-12158
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Migrate the CacheLIRS-based caches in oak-segment-tar to OakCache.
>   Changes:
>   - ReaderCache — CacheLIRS.newBuilder() → OakCacheBuilder.newBuilder(); CacheLIRS<K,V> → OakCache<K,V>
>   - WriterCacheManager — update cache type references
>   - PriorityCache — update if it references Guava shim types directly
>   - RecordCacheStats — convert OakCacheStats → Guava shim CacheStats in getCurrentStats() (kept until TASK-16)
>   - spi/persistence/persistentcache/SegmentCacheStats — same conversion bridge until TASK-16
>   - SegmentNodeStoreRegistrar — update if it references cache builder types
>   - Update callers catching ExecutionException to handle CompletionException/RuntimeException
>   Acceptance criteria:
>   - No org.apache.jackrabbit.guava.common.cache imports in oak-segment-tar/src/main/java
>   - PriorityCacheTest, ConcurrentPriorityCacheTest, ReaderCacheTest pass
>   - Memoization behavior unchanged



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