[
https://issues.apache.org/jira/browse/OAK-12449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sedding resolved OAK-12449.
----------------------------------
Fix Version/s: 2.10.0
Resolution: Fixed
> SegmentPreloader leaks in-progress entries for tasks dropped when the
> dispatch queue is full
> --------------------------------------------------------------------------------------------
>
> Key: OAK-12449
> URL: https://issues.apache.org/jira/browse/OAK-12449
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-tar
> Reporter: Lucas Weitzendorf
> Priority: Major
> Fix For: 2.10.0
>
>
> When the dispatch queue has {{DISPATCH_QUEUE_MAX_SIZE}} (10,000) tasks
> waiting, {{SegmentPreloader}}'s dispatch executor silently drops new tasks in
> {{execute()}}. The segment IDs for those tasks were already registered in
> {{inProgressPrefetch}}. Normally {{afterExecute()}} removes them, but a
> dropped task never runs, so its entries are never removed. Under sustained
> preload pressure the map keeps growing, and those segments are never
> preloaded again because they look like they're still in progress.
> Fix: call {{clearInProgressTask(command)}} when a task is dropped. Add a test
> that fills the dispatch queue and checks that dropped tasks leave nothing
> behind in {{inProgressPrefetch}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)