[
https://issues.apache.org/jira/browse/OAK-12436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rishabh Daim updated OAK-12436:
-------------------------------
Description:
Add per-cache SYNC/ASYNC maintenance selection to CacheBuilder. Keep the
existing ASYNC default and behavior for callers that do not select a mode.
* Explicit selection takes precedence over the legacy shared toggle.
* Refresh remains asynchronous; zero-capacity eviction remains inline.
* Include API versioning, maintenance tests and the enum in Lucene's embedded
cache classes.
Caller changes follow separately in OAK-12438 and OAK-12425.
[PR #3185|https://github.com/apache/jackrabbit-oak/pull/3185]
was:
h3. Summary
Add per-cache SYNC/ASYNC Caffeine maintenance selection to the shared
CacheBuilder API. ASYNC remains the default.
h3. Scope and order
This is the first PR, based on the latest trunk. Bundle policy is selected
explicitly by each cache or by the bundle's own override. OAK-12438 separately
migrates Segment Tar's FT_OAK-12290 integration. OAK-12425 adds
DocumentNodeStore per-CacheType wiring and entry-owned metadata. OAK-12426,
including OAK-12437, benchmarks the completed production paths.
h3. Acceptance Criteria
# CacheBuilder supports independent SYNC and ASYNC selection per instance,
validates null input, and preserves the ASYNC default.
# Explicit cache selection takes precedence over the deprecated legacy shared
toggle while its existing Segment consumer is migrated by OAK-12438.
# Refresh loaders remain asynchronous and zero-capacity caches retain inline
eviction.
# Exported API package version and binary compatibility are handled, with
deprecated toggle symbols retained.
# Tests exercise defaults, independent policies, legacy precedence, refresh and
zero capacity; targeted validation uses java17.
# Complete all implementation and stack dependencies before the final
change-reviewer pass, then fix verified findings and push in dependency order.
h3. Stack and validation sequence
Use gh stack with dependent PRs based on their predecessor: latest trunk ->
OAK-12436 -> OAK-12438 -> OAK-12425 -> OAK-12426 (also covering OAK-12437).
Complete implementation first, then review each final PR from its base in
dependency order, fix verified findings, validate with java17 and push.
h3. API-only PR boundary
PR 3185 contains shared per-cache maintenance-mode support, its API
documentation/versioning and tests only. It does not update DocumentNodeStore
or Segment Tar callers. OAK-12425 selects SYNC as the Oak Store Document
default; OAK-12438 separately updates Segment Tar. The shared API default
remains ASYNC. Publish the completed implementation stack before reviewing it
from the base PR upward; fixes are then validated and pushed.
> Support per-cache Caffeine maintenance mode
> -------------------------------------------
>
> Key: OAK-12436
> URL: https://issues.apache.org/jira/browse/OAK-12436
> Project: Jackrabbit Oak
> Issue Type: Task
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
>
> Add per-cache SYNC/ASYNC maintenance selection to CacheBuilder. Keep the
> existing ASYNC default and behavior for callers that do not select a mode.
> * Explicit selection takes precedence over the legacy shared toggle.
> * Refresh remains asynchronous; zero-capacity eviction remains inline.
> * Include API versioning, maintenance tests and the enum in Lucene's embedded
> cache classes.
> Caller changes follow separately in OAK-12438 and OAK-12425.
> [PR #3185|https://github.com/apache/jackrabbit-oak/pull/3185]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)