Rishabh Daim created OAK-12157:
----------------------------------

             Summary: 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


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)

Reply via email to