mirror of https://github.com/apache/lucene.git
SOLR-3620: check if shutdown after wait so that any threads that were waiting bail rather than starting a recovery
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1361805 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc395993e3
commit
c16f3f75bc
|
@ -137,6 +137,11 @@ public final class DefaultSolrCoreState extends SolrCoreState {
|
|||
recoveryLock.wait(1000);
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
}
|
||||
// check again for those that were waiting
|
||||
if (cc.isShutDown()) {
|
||||
log.warn("Skipping recovery because Solr is shutdown");
|
||||
return;
|
||||
}
|
||||
if (closed) return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue