[
https://issues.apache.org/jira/browse/SOLR-17700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935218#comment-17935218
]
ASF subversion and git services commented on SOLR-17700:
--------------------------------------------------------
Commit 7725ac3245927ee667c5eed6f1eaaaef184ba3ff in solr's branch
refs/heads/main from Houston Putman
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=7725ac32459 ]
SOLR-17700: Use core operation lock when unloading core (#3260)
> CoreContainer does not obtain a lock when unloading cores
> ---------------------------------------------------------
>
> Key: SOLR-17700
> URL: https://issues.apache.org/jira/browse/SOLR-17700
> Project: Solr
> Issue Type: Bug
> Reporter: Houston Putman
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> CoreContainer uses {{solrCores.waitAddPendingCoreOps(name)}} when doing an
> operation on a core. And the documentation for
> {{SolrCores.waitAddPendingCoreOps(name)}} mentions that:
> bq. // Wait here until any pending operations (load, unload or reload) are
> completed on this core.
> However, CoreContainer does not use this locking when unloading a core. This
> is the reason why we are seeing race condition issues when deleting and
> reloading a collection at the same time.
> Loading a core can possibly require unloading said core, when
> "deleteUnknownCoresOnStartup" is used, thus we need a way of unloading
> without a lock. But other than this edge case, locking the unload operation
> should only improve stability in Solr.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]