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 05:28:00 UTC

[jira] [Resolved] (OAK-12157) Migrate oak-segment-tar Guava-shim caches to Oak Cache API

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

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

> Migrate oak-segment-tar Guava-shim caches to Oak Cache API
> ----------------------------------------------------------
>
>                 Key: OAK-12157
>                 URL: https://issues.apache.org/jira/browse/OAK-12157
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Migrate the Guava-shim-based caches in oak-segment-tar from CacheBuilder to OakCacheBuilder.
>   Changes:
>   - SegmentCache — CacheBuilder.newBuilder() → OakCacheBuilder.newBuilder(); Cache → OakCache; Guava RemovalCause → OakRemovalCause; inner Stats class: convert OakCacheStats → Guava shim CacheStats in
>   getCurrentStats() (Guava return type kept until TASK-16)
>   - RecordCache — CacheBuilder.newBuilder() → OakCacheBuilder.newBuilder(); Cache → OakCache; Guava Weigher → OakWeigher
>   - CacheWeights — Weigher → OakWeigher
>   - CachingSegmentReader — update cache type references
>   - Update callers catching ExecutionException to handle CompletionException/RuntimeException
>   Acceptance criteria:
>   - SegmentCacheTest passes
>   - Segment unload timing and eviction callback timing unchanged



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