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/03/24 03:01:00 UTC
[jira] [Created] (OAK-12157) Migrate oak-segment-tar Guava-shim caches to Oak Cache API
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)