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

ASF subversion and git services commented on SOLR-17149:
--------------------------------------------------------

Commit 20982b0d96a12dcbbf1b16e58bbe3013a7a8bd79 in solr's branch 
refs/heads/branch_9_5 from Pierre Salagnac
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=20982b0d96a ]

SOLR-17149: Fix backup/restore for large collections. (#2243)

9.4 introduced a new executor used for "expensive" operations, that
relied on a bounded queue.  This caused backup operations to fail on
collections large enough to hit this queue capacity.

This commit fixes this problem by making the executor queue unbounded.

---------

Co-authored-by: Pierre Salagnac <psalag...@salesforce.com>
Co-authored-by: Jason Gerlowski <gerlowsk...@apache.org>


> Cannot backup/restore large collection.
> ---------------------------------------
>
>                 Key: SOLR-17149
>                 URL: https://issues.apache.org/jira/browse/SOLR-17149
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.4
>            Reporter: Pierre Salagnac
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
>  
> There is a regression introduced in version 9.4 with SOLR-16879.
>  
> We cannot backup collections with more than 10 shards per node. The thread 
> pool is rejecting new tasks with following error:
> {noformat}
> SolrException: Could not backup all shards
> Task 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda...
>  rejected from 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor[Running, 
> pool size = 5, active threads = 5, queued tasks = 5, completed tasks = 30]"
> {noformat}
> {{expensiveExecutor}} thread pool executor is 
> [created|https://github.com/apache/solr/blob/releases/solr/9.4.1/solr/solrj/src/java/org/apache/solr/common/util/ExecutorUtil.java#L170-L174]
>  with 5 max threads and bounded queue of the same size (5), so the total 
> number of tasks is limited to 10 and all the other tasks are immediately 
> rejected.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to