[
https://issues.apache.org/jira/browse/OAK-11051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nuno Santos resolved OAK-11051.
-------------------------------
Resolution: Done
> indexing-job: parallel download: when one of the download threads finish,
> stop the other thread
> -----------------------------------------------------------------------------------------------
>
> Key: OAK-11051
> URL: https://issues.apache.org/jira/browse/OAK-11051
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: indexing
> Reporter: Nuno Santos
> Priority: Major
>
> A thread will finish downloading when either it has reached the end of the
> query range or it has crossed with documents already downloaded by the other
> thread. In both cases, there are no more documents to download. Currently,
> the indexing job waits until the second thread finishes by itself. This
> happens when the other thread receives the next response from Mongo, because
> it will then notice that the documents have crossed. But if the query in
> Mongo is not returning results (usually if the regex filter is very
> selective), then it can take a while until the second thread completes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)