[
https://issues.apache.org/jira/browse/OAK-12363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105273#comment-18105273
]
Rishabh Daim commented on OAK-12363:
------------------------------------
The exact problem is that we can't override this with an OSGi config that is
present inside the bundle, which is creating the cache.
For ex: the cache is present inside oak-core-spi, but users are oak-segment-tar
and oak-lucene.
Consider that we added an OSGi config to override the cache size to
oak-segment-tar; the following things would happen:
1. Since the maintenance executor is at the global level, it can only be
instantiated once, and the first caller to the cache builder would win the race.
2. Now, if any other bundle that hasn't overridden the OSGi config wins the
race, then the size would fall back to that bundle's value.
3. This way, we can't reliably set the value of the cache queue.
> Make caffeine maintenance 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)