Rishabh Daim created OAK-12158:
----------------------------------
Summary: 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
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)