mirror of https://github.com/apache/lucene.git
SOLR-2180: make sure core is closed even if closing request causes an exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f2c4fe1a2
commit
c723559a59
|
@ -230,10 +230,13 @@ public class EmbeddedSolrServer extends SolrServer
|
|||
throw new SolrServerException( ex );
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
if (req != null) req.close();
|
||||
} finally {
|
||||
core.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param req
|
||||
|
|
Loading…
Reference in New Issue