Rishabh Daim created OAK-12436:
----------------------------------
Summary: Support per-cache Caffeine maintenance mode with
bundle-scoped overrides
Key: OAK-12436
URL: https://issues.apache.org/jira/browse/OAK-12436
Project: Jackrabbit Oak
Issue Type: Task
Reporter: Rishabh Daim
h3. Summary
Let each Caffeine cache choose synchronous or asynchronous maintenance, and let
a bundle override the choice for only the caches it owns.
h3. Context
Caffeine maintenance is currently selected through shared CacheBuilder state.
This makes the Segment Tar feature toggle capable of affecting caches built by
other bundles. Keep ASYNC as the default, provide a per-cache setting, and make
bundle overrides local to their owning bundle. The Segment Tar OAK-12290 toggle
must affect Segment Tar caches only. oak-store-document must be able to select
its mode independently.
h3. Acceptance Criteria
# CacheBuilder exposes a per-cache SYNC or ASYNC maintenance choice and
defaults to ASYNC.
# A bundle can override the mode for caches it owns without changing the mode
of caches built by another bundle.
# The Segment Tar OAK-12290 feature toggle changes Segment Tar cache
maintenance only.
# oak-store-document can choose its cache mode independently of Segment Tar.
# Refresh reloads remain asynchronous and zero-capacity cache maintenance
remains synchronous.
# Tests cover default mode, explicit modes, override scope, and callback
execution behavior.
# Existing public API and feature-toggle compatibility are reviewed and
documented.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)