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:
Mark Robert Miller 2012-01-27 21:19:08 +00:00
parent af77591d7a
commit cc93925b9f
1 changed files with 3 additions and 0 deletions

View File

@ -489,6 +489,9 @@ public class CoreContainer
SolrCore old = null;
synchronized (cores) {
if (isShutDown) {
throw new IllegalStateException("This CoreContainer has been shutdown");
}
old = cores.put(name, core);
/*
* set both the name of the descriptor and the name of the