[ 
https://issues.apache.org/jira/browse/SOLR-17716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-17716:
----------------------------------
    Labels: pull-request-available  (was: )

> Handle interrupted exception in SolrCores.waitAddPendingCoreOps
> ---------------------------------------------------------------
>
>                 Key: SOLR-17716
>                 URL: https://issues.apache.org/jira/browse/SOLR-17716
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Bruno Roustant
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> SolrCores.waitAddPendingCoreOps is the main locking mechanism for operations 
> on cores like creation/loading/removal.
> In the current code, if an InterruptedException is caught while waiting for 
> the lock, the method returns null. However returning null means basically 
> that the waiting is complete and the caller got the lock. So the caller code 
> proceeds normally with its critical operation on the core.
> We should handle differently an InterruptedException to prevent the caller 
> from taking the lock while another pending op is on the core. The proposal is 
> to throw a SolrException.



--
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