mirror of https://github.com/apache/lucene.git
Clear infoRegistry before closing searcher
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@681638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e25d09c798
commit
670174c87b
|
@ -566,6 +566,11 @@ public final class SolrCore {
|
||||||
*/
|
*/
|
||||||
public void close() {
|
public void close() {
|
||||||
log.info(logid+" CLOSING SolrCore!");
|
log.info(logid+" CLOSING SolrCore!");
|
||||||
|
try {
|
||||||
|
infoRegistry.clear();
|
||||||
|
} catch (Exception e) {
|
||||||
|
SolrException.log(log, e);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
closeSearcher();
|
closeSearcher();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -586,11 +591,6 @@ public final class SolrCore {
|
||||||
hook.close( this );
|
hook.close( this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
infoRegistry.clear();
|
|
||||||
} catch (Exception e) {
|
|
||||||
SolrException.log(log, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isClosed() {
|
public boolean isClosed() {
|
||||||
|
|
Loading…
Reference in New Issue