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/08/17 04:20:00 UTC

[jira] [Commented] (OAK-12363) Make caffeine maontainence task queue size configurable

    [ https://issues.apache.org/jira/browse/OAK-12363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105178#comment-18105178 ] 

Rishabh Daim commented on OAK-12363:
------------------------------------

There is one issue while implementing this change as an OSGi config.

1. Currently, the maintenance executor is at the global level, not per cache level.
2. Keeping it at the global level mimics the same behaviour used by Caffeine's internal executor, i. e., `ForkJoinPool.commonPool`.
3. Since it is at the global level, we can't safely override it per bundle/cache level via an OSGi config, which is scoped to a single bundle. would cause issues due to startup order.

Options to explore are:


1. Add OSGi config in oak-core-spi bundle. (currently no OSGi configs are there)
2. Use a system property (would be difficult to manage at scale)
3. Keep it at the cache level, but that would explode the thread count and would require additional lifecycle management. 

cc [~joerghoh] [~reschke] [~jsedding] 

 

 

 

> Make caffeine maontainence task queue size configurable
> -------------------------------------------------------
>
>                 Key: OAK-12363
>                 URL: https://issues.apache.org/jira/browse/OAK-12363
>             Project: Jackrabbit Oak
>          Issue Type: Task
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>
> With OAK-12290, caffeine now uses async maintenance (behind an FT, though).
> The thread pool inside the maintenance executor uses a hard-coded queue capacity value of 1024.
> We should make it configurable.



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