check shutdown for early termination in 'wait for state'

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1426840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-29 21:29:11 +00:00
parent dbd1d94004
commit 88ce4ab029
1 changed files with 5 additions and 0 deletions

View File

@ -941,6 +941,11 @@ public class CoreAdminHandler extends RequestHandlerBase {
+ state + " live:" + live);
}
if (coreContainer.isShutDown()) {
throw new SolrException(ErrorCode.BAD_REQUEST,
"Solr is shutting down");
}
// solrcloud_debug
// try {;
// LocalSolrQueryRequest r = new LocalSolrQueryRequest(core, new