mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 19:15:06 +00:00
SOLR-10120: Clean up earlier so we don't hit closed resources.
This commit is contained in:
parent
ed05debb4e
commit
19c8ec2bf1
@ -1505,6 +1505,14 @@ public final class SolrCore implements SolrInfoMBean, Closeable {
|
|||||||
throw (Error) e;
|
throw (Error) e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (coreStateClosed) {
|
||||||
|
try {
|
||||||
|
cleanupOldIndexDirectories(false);
|
||||||
|
} catch (Exception e) {
|
||||||
|
SolrException.log(log, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
infoRegistry.clear();
|
infoRegistry.clear();
|
||||||
@ -1536,11 +1544,6 @@ public final class SolrCore implements SolrInfoMBean, Closeable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (coreStateClosed) {
|
if (coreStateClosed) {
|
||||||
try {
|
|
||||||
cleanupOldIndexDirectories(false);
|
|
||||||
} catch (Exception e) {
|
|
||||||
SolrException.log(log, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
directoryFactory.close();
|
directoryFactory.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user