[ https://issues.apache.org/jira/browse/SOLR-17716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Roustant resolved SOLR-17716. ----------------------------------- Fix Version/s: 9.9 Resolution: Fixed > 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 > Fix For: 9.9 > > Time Spent: 1h 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