Bruno Roustant created SOLR-17716:
-------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]