While running Oak in Sling we rely on Sling Scheduler to ensure that async indexing task are run on leader (
OAK-1246) with specified frequency.
Be default Sling Scheduler uses a default pool for managing all tasks. It can happen that number of task can be quite hight which can then lead to default thread pool getting exhausted and that causes async indexing to get delayed.
To ensure that async indexing is not affected by such scenarios we should make use of a dedicated thread pool. This is now supported by