[ 
https://issues.apache.org/jira/browse/OAK-12437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rishabh Daim updated OAK-12437:
-------------------------------
    Description: 
h3. Summary
Add an explicit, per-CacheType ASYNC maintenance opt-in for oak-store-document 
Caffeine caches, guarded by a disabled-by-default feature toggle.

h3. Scope
Build directly on OAK-12425, which migrates DocumentNodeStore caches to 
Caffeine with SYNC maintenance and entry-owned persistent-cache metadata. 
Restore the builder-level per-cache maintenance override in this follow-up. 
Register bundle-local FT_OAK-12437 from oak-store-document. The FT is disabled 
by default. When disabled, every newly constructed Document cache must use SYNC 
even if its builder requests ASYNC. When enabled, only explicitly configured 
cache types use ASYNC; all others remain SYNC. Caffeine fixes a cache's 
maintenance policy at construction, so recreate the DocumentNodeStore after 
changing the FT for the new state to apply to all caches. Segment Tar's 
separate FT_OAK-12290 remains local to its own bundle and caches.

h3. Acceptance Criteria
* FT_OAK-12437 is registered disabled by default and removed when the 
DocumentNodeStore service deactivates.
* With the FT disabled, explicit ASYNC configuration for any Document cache 
still constructs SYNC maintenance.
* With the FT enabled, explicitly selected cache types use ASYNC and 
unconfigured types use SYNC.
* Tests verify callback execution mode, independent cache selection, 
concurrency behavior, persistence behavior, and FT lifecycle.
* Existing default behavior remains SYNC; no Document cache uses ASYNC unless 
both the FT is enabled and that cache is explicitly selected.
* This work is a follow-up PR directly based on OAK-12425 and precedes the 
OAK-12426 benchmark PR.


  was:
h3. Summary
Allow DocumentNodeStore to opt individual Caffeine caches into asynchronous 
maintenance after the SYNC migration in OAK-12425.

h3. Scope
Build on OAK-12425 / PR #3176. Reuse and move the existing per-CacheType 
builder override and production integration tests into this follow-up. 
Unconfigured Document caches remain SYNC; selecting ASYNC for one CacheType 
does not change the others. Entry-owned metadata correctness must hold in both 
modes.

The comparative LIRS, Caffeine SYNC and Caffeine ASYNC measurements remain 
tracked by OAK-12426.


> Enable per-cache asynchronous maintenance in oak-store-document
> ---------------------------------------------------------------
>
>                 Key: OAK-12437
>                 URL: https://issues.apache.org/jira/browse/OAK-12437
>             Project: Jackrabbit Oak
>          Issue Type: Task
>            Reporter: Rishabh Daim
>            Priority: Major
>
> h3. Summary
> Add an explicit, per-CacheType ASYNC maintenance opt-in for 
> oak-store-document Caffeine caches, guarded by a disabled-by-default feature 
> toggle.
> h3. Scope
> Build directly on OAK-12425, which migrates DocumentNodeStore caches to 
> Caffeine with SYNC maintenance and entry-owned persistent-cache metadata. 
> Restore the builder-level per-cache maintenance override in this follow-up. 
> Register bundle-local FT_OAK-12437 from oak-store-document. The FT is 
> disabled by default. When disabled, every newly constructed Document cache 
> must use SYNC even if its builder requests ASYNC. When enabled, only 
> explicitly configured cache types use ASYNC; all others remain SYNC. Caffeine 
> fixes a cache's maintenance policy at construction, so recreate the 
> DocumentNodeStore after changing the FT for the new state to apply to all 
> caches. Segment Tar's separate FT_OAK-12290 remains local to its own bundle 
> and caches.
> h3. Acceptance Criteria
> * FT_OAK-12437 is registered disabled by default and removed when the 
> DocumentNodeStore service deactivates.
> * With the FT disabled, explicit ASYNC configuration for any Document cache 
> still constructs SYNC maintenance.
> * With the FT enabled, explicitly selected cache types use ASYNC and 
> unconfigured types use SYNC.
> * Tests verify callback execution mode, independent cache selection, 
> concurrency behavior, persistence behavior, and FT lifecycle.
> * Existing default behavior remains SYNC; no Document cache uses ASYNC unless 
> both the FT is enabled and that cache is explicitly selected.
> * This work is a follow-up PR directly based on OAK-12425 and precedes the 
> OAK-12426 benchmark PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to