mirror of https://github.com/apache/lucene.git
don't allow registering a new SolrCore if the CoreContainer has been shutdown
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236889 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af77591d7a
commit
cc93925b9f
|
@ -489,6 +489,9 @@ public class CoreContainer
|
||||||
|
|
||||||
SolrCore old = null;
|
SolrCore old = null;
|
||||||
synchronized (cores) {
|
synchronized (cores) {
|
||||||
|
if (isShutDown) {
|
||||||
|
throw new IllegalStateException("This CoreContainer has been shutdown");
|
||||||
|
}
|
||||||
old = cores.put(name, core);
|
old = cores.put(name, core);
|
||||||
/*
|
/*
|
||||||
* set both the name of the descriptor and the name of the
|
* set both the name of the descriptor and the name of the
|
||||||
|
|
Loading…
Reference in New Issue